| 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; |
| 14 |
| 13 namespace content { | 15 namespace content { |
| 14 | 16 |
| 15 // This is a specialization of WebKitPlatformSupportImpl that implements the | 17 // This is a specialization of WebKitPlatformSupportImpl that implements the |
| 16 // embedder functions in terms of ContentClient. | 18 // embedder functions in terms of ContentClient. |
| 17 class CONTENT_EXPORT WebKitPlatformSupportImpl | 19 class CONTENT_EXPORT WebKitPlatformSupportImpl |
| 18 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { | 20 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { |
| 19 public: | 21 public: |
| 20 WebKitPlatformSupportImpl(); | 22 WebKitPlatformSupportImpl(); |
| 21 virtual ~WebKitPlatformSupportImpl(); | 23 virtual ~WebKitPlatformSupportImpl(); |
| 22 | 24 |
| 23 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 25 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
| 24 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; | 26 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; |
| 25 virtual void GetPlugins(bool refresh, | 27 virtual void GetPlugins(bool refresh, |
| 26 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | 28 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
| 27 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | 29 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
| 28 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) | 30 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) |
| 29 OVERRIDE; | 31 OVERRIDE; |
| 30 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( | 32 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( |
| 31 WebKit::WebSocketStreamHandle* handle, | 33 WebKit::WebSocketStreamHandle* handle, |
| 32 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; | 34 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; |
| 33 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 35 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 34 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 36 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 37 |
| 38 protected: |
| 39 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); |
| 35 }; | 40 }; |
| 36 | 41 |
| 37 } // namespace content | 42 } // namespace content |
| 38 | 43 |
| 39 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 44 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 40 | 45 |
| OLD | NEW |