OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | |
6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "content/common/content_export.h" | |
10 #include "ui/base/layout.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 typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)(); | |
21 | |
22 WebKitPlatformSupportImpl(); | |
23 virtual ~WebKitPlatformSupportImpl(); | |
24 | |
25 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | |
26 virtual base::StringPiece GetDataResource( | |
27 int resource_id, | |
28 ui::ScaleFactor scale_factor) OVERRIDE; | |
29 virtual void GetPlugins(bool refresh, | |
30 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | |
31 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | |
32 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) | |
33 OVERRIDE; | |
34 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( | |
35 WebKit::WebSocketStreamHandle* handle, | |
36 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; | |
37 #if defined(OS_ANDROID) | |
38 virtual webkit_media::WebAudioMediaCodecRunner GetWebAudioMediaCodecRunner() | |
39 OVERRIDE; | |
40 #endif | |
41 }; | |
42 | |
43 } // namespace content | |
44 | |
45 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | |
OLD | NEW |