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 WebKit::WebURLLoader* createURLLoader(); | 25 virtual WebKit::WebURLLoader* createURLLoader(); |
| 26 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
26 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 27 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
27 virtual void decrementStatsCounter(const char* name); | 28 virtual void decrementStatsCounter(const char* name); |
28 virtual void incrementStatsCounter(const char* name); | 29 virtual void incrementStatsCounter(const char* name); |
29 virtual void traceEventBegin(const char* name, void* id, const char* extra); | 30 virtual void traceEventBegin(const char* name, void* id, const char* extra); |
30 virtual void traceEventEnd(const char* name, void* id, const char* extra); | 31 virtual void traceEventEnd(const char* name, void* id, const char* extra); |
31 virtual WebKit::WebData loadResource(const char* name); | 32 virtual WebKit::WebData loadResource(const char* name); |
32 virtual WebKit::WebString queryLocalizedString( | 33 virtual WebKit::WebString queryLocalizedString( |
33 WebKit::WebLocalizedString::Name name); | 34 WebKit::WebLocalizedString::Name name); |
34 virtual WebKit::WebString queryLocalizedString( | 35 virtual WebKit::WebString queryLocalizedString( |
35 WebKit::WebLocalizedString::Name name, int numeric_value); | 36 WebKit::WebLocalizedString::Name name, int numeric_value); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void (*shared_timer_func_)(); | 103 void (*shared_timer_func_)(); |
103 | 104 |
104 #if defined(OS_WIN) | 105 #if defined(OS_WIN) |
105 WebThemeEngineImpl theme_engine_; | 106 WebThemeEngineImpl theme_engine_; |
106 #endif | 107 #endif |
107 }; | 108 }; |
108 | 109 |
109 } // namespace webkit_glue | 110 } // namespace webkit_glue |
110 | 111 |
111 #endif // WEBKIT_CLIENT_IMPL_H_ | 112 #endif // WEBKIT_CLIENT_IMPL_H_ |
OLD | NEW |