Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: content/common/webkitplatformsupport_impl.h

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/resource_messages.cc ('k') | content/common/webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
11 #include "webkit/glue/webkitplatformsupport_impl.h" 11 #include "webkit/glue/webkitplatformsupport_impl.h"
12 12
13 namespace content { 13 namespace content {
14 class GpuChannelHostFactory; 14 class GpuChannelHostFactory;
15 class ThreadSafeSender;
15 16
16 // This is a specialization of WebKitPlatformSupportImpl that implements the 17 // This is a specialization of WebKitPlatformSupportImpl that implements the
17 // embedder functions in terms of ContentClient. 18 // embedder functions in terms of ContentClient.
18 class CONTENT_EXPORT WebKitPlatformSupportImpl 19 class CONTENT_EXPORT WebKitPlatformSupportImpl
19 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { 20 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) {
20 public: 21 public:
21 typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)(); 22 typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)();
22 23
23 WebKitPlatformSupportImpl(); 24 WebKitPlatformSupportImpl();
24 virtual ~WebKitPlatformSupportImpl(); 25 virtual ~WebKitPlatformSupportImpl();
25 26
26 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 27 virtual string16 GetLocalizedString(int message_id) OVERRIDE;
27 virtual base::StringPiece GetDataResource( 28 virtual base::StringPiece GetDataResource(
28 int resource_id, 29 int resource_id,
29 ui::ScaleFactor scale_factor) OVERRIDE; 30 ui::ScaleFactor scale_factor) OVERRIDE;
30 virtual void GetPlugins(bool refresh, 31 virtual void GetPlugins(bool refresh,
31 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 32 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
32 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 33 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
33 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 34 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
34 OVERRIDE; 35 OVERRIDE;
35 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 36 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
36 WebKit::WebSocketStreamHandle* handle, 37 WebKit::WebSocketStreamHandle* handle,
37 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; 38 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
38 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 39 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
39 const WebKit::WebGraphicsContext3D::Attributes& attributes); 40 const WebKit::WebGraphicsContext3D::Attributes& attributes);
41 virtual WebKit::WebBlobRegistry* blobRegistry();
40 42
41 static void SetOffscreenContextFactoryForTest( 43 static void SetOffscreenContextFactoryForTest(
42 OffscreenContextFactory factory); 44 OffscreenContextFactory factory);
43 45
44 protected: 46 protected:
45 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); 47 virtual GpuChannelHostFactory* GetGpuChannelHostFactory();
48 ThreadSafeSender* thread_safe_sender() { return thread_safe_sender_.get(); }
49
50
51 private:
52 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
53 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
46 }; 54 };
47 55
48 } // namespace content 56 } // namespace content
49 57
50 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ 58 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.cc ('k') | content/common/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698