| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_CLIENT_IMPL_H_ | 5 #ifndef WEBKIT_CLIENT_IMPL_H_ |
| 6 #define WEBKIT_CLIENT_IMPL_H_ | 6 #define WEBKIT_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/timer.h" | 9 #include "base/timer.h" |
| 10 #include "webkit/api/public/WebKitClient.h" | 10 #include "webkit/api/public/WebKitClient.h" |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include "webkit/glue/webthemeengine_impl_win.h" | 12 #include "webkit/glue/webthemeengine_impl_win.h" |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 class MessageLoop; | 15 class MessageLoop; |
| 16 | 16 |
| 17 namespace webkit_glue { | 17 namespace webkit_glue { |
| 18 | 18 |
| 19 class WebKitClientImpl : public WebKit::WebKitClient { | 19 class WebKitClientImpl : public WebKit::WebKitClient { |
| 20 public: | 20 public: |
| 21 WebKitClientImpl(); | 21 WebKitClientImpl(); |
| 22 | 22 |
| 23 // WebKitClient methods (partial implementation): | 23 // WebKitClient methods (partial implementation): |
| 24 virtual WebKit::WebThemeEngine* themeEngine(); | 24 virtual WebKit::WebThemeEngine* themeEngine(); |
| 25 virtual bool rawCookies(const WebKit::WebURL& url, |
| 26 const WebKit::WebURL& policy_url, |
| 27 WebKit::WebVector<WebKit::WebCookie>*); |
| 28 virtual void deleteCookie(const WebKit::WebURL& url, |
| 29 const WebKit::WebString& cookie_name); |
| 25 virtual WebKit::WebURLLoader* createURLLoader(); | 30 virtual WebKit::WebURLLoader* createURLLoader(); |
| 26 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); | 31 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
| 27 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 32 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
| 28 virtual void decrementStatsCounter(const char* name); | 33 virtual void decrementStatsCounter(const char* name); |
| 29 virtual void incrementStatsCounter(const char* name); | 34 virtual void incrementStatsCounter(const char* name); |
| 30 virtual void traceEventBegin(const char* name, void* id, const char* extra); | 35 virtual void traceEventBegin(const char* name, void* id, const char* extra); |
| 31 virtual void traceEventEnd(const char* name, void* id, const char* extra); | 36 virtual void traceEventEnd(const char* name, void* id, const char* extra); |
| 32 virtual WebKit::WebData loadResource(const char* name); | 37 virtual WebKit::WebData loadResource(const char* name); |
| 33 virtual WebKit::WebString queryLocalizedString( | 38 virtual WebKit::WebString queryLocalizedString( |
| 34 WebKit::WebLocalizedString::Name name); | 39 WebKit::WebLocalizedString::Name name); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void (*shared_timer_func_)(); | 112 void (*shared_timer_func_)(); |
| 108 | 113 |
| 109 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
| 110 WebThemeEngineImpl theme_engine_; | 115 WebThemeEngineImpl theme_engine_; |
| 111 #endif | 116 #endif |
| 112 }; | 117 }; |
| 113 | 118 |
| 114 } // namespace webkit_glue | 119 } // namespace webkit_glue |
| 115 | 120 |
| 116 #endif // WEBKIT_CLIENT_IMPL_H_ | 121 #endif // WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |