OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "webkit/glue/webkitplatformsupport_impl.h" | 11 #include "webkit/glue/webkitplatformsupport_impl.h" |
12 | 12 |
13 class GpuChannelHostFactory; | 13 class GpuChannelHostFactory; |
14 | 14 |
15 namespace WebKit { | |
16 class WebView; | |
17 } | |
18 | |
15 namespace content { | 19 namespace content { |
16 | 20 |
17 // This is a specialization of WebKitPlatformSupportImpl that implements the | 21 // This is a specialization of WebKitPlatformSupportImpl that implements the |
18 // embedder functions in terms of ContentClient. | 22 // embedder functions in terms of ContentClient. |
19 class CONTENT_EXPORT WebKitPlatformSupportImpl | 23 class CONTENT_EXPORT WebKitPlatformSupportImpl |
20 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { | 24 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { |
21 public: | 25 public: |
22 WebKitPlatformSupportImpl(); | 26 WebKitPlatformSupportImpl(); |
23 virtual ~WebKitPlatformSupportImpl(); | 27 virtual ~WebKitPlatformSupportImpl(); |
24 | 28 |
25 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 29 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
26 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; | 30 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; |
27 virtual base::StringPiece GetImageResource(int resource_id, | 31 virtual base::StringPiece GetImageResource(int resource_id, |
28 float scale_factor) OVERRIDE; | 32 float scale_factor) OVERRIDE; |
29 virtual void GetPlugins(bool refresh, | 33 virtual void GetPlugins(bool refresh, |
30 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | 34 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
31 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | 35 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
32 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) | 36 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) |
33 OVERRIDE; | 37 OVERRIDE; |
34 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( | 38 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( |
35 WebKit::WebSocketStreamHandle* handle, | 39 WebKit::WebSocketStreamHandle* handle, |
36 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; | 40 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; |
37 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 41 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
38 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 42 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
43 WebKit::WebView* webView); | |
piman
2012/05/15 20:59:17
NAK, the offscreen contexts are shared between web
(scshunt)
2012/05/16 16:39:43
See the WebKit bug thread for some discussion of t
piman
2012/05/16 17:12:00
This is flawed. See the discussion there.
I don't
Fady Samuel
2012/05/16 17:40:54
I agree, let's split this up into two cls.
As for
| |
39 | 44 |
40 protected: | 45 protected: |
41 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); | 46 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); |
42 }; | 47 }; |
43 | 48 |
44 } // namespace content | 49 } // namespace content |
45 | 50 |
46 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 51 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
47 | 52 |
OLD | NEW |