1518d91b70fabd0fa8b644e36f450db2fb83d9e3
[platform/framework/web/crosswalk-tizen.git] /
1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ewk_favicon_database_private_h
6 #define ewk_favicon_database_private_h
7
8 #include "eweb_context.h"
9
10 class EWebContext;
11
12 struct EwkFaviconDatabase {
13  public:
14   explicit EwkFaviconDatabase(EWebContext* eweb_context)
15     : eweb_context_(eweb_context) {}
16
17   Evas_Object* GetIcon(const char* page_url, Evas* evas) const {
18     return eweb_context_->AddFaviconObject(page_url, evas);
19   }
20
21  private:
22   EWebContext* eweb_context_;
23 };
24 #endif // ewk_favicon_database_private_h