OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. 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 CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 // This is a specialization of WebKitPlatformSupportImpl that implements the |
| 16 // embedder functions in terms of ContentClient. |
| 17 class CONTENT_EXPORT WebKitPlatformSupportImpl |
| 18 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { |
| 19 public: |
| 20 WebKitPlatformSupportImpl(); |
| 21 virtual ~WebKitPlatformSupportImpl(); |
| 22 |
| 23 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
| 24 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; |
| 25 virtual void GetPlugins(bool refresh, |
| 26 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
| 27 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
| 28 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) |
| 29 OVERRIDE; |
| 30 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( |
| 31 WebKit::WebSocketStreamHandle* handle, |
| 32 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 38 |
OLD | NEW |