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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 40303002: Simplify SharedWorkerRepository code (Chromium side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 1 month 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
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_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "content/child/webkitplatformsupport_impl.h" 11 #include "content/child/webkitplatformsupport_impl.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/web/WebSharedWorkerRepository.h"
14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 13 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
15 #include "third_party/WebKit/public/platform/WebIDBFactory.h" 14 #include "third_party/WebKit/public/platform/WebIDBFactory.h"
16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 15 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
17 16
18 namespace base { 17 namespace base {
19 class MessageLoopProxy; 18 class MessageLoopProxy;
20 } 19 }
21 20
22 namespace cc { 21 namespace cc {
23 class ContextProvider; 22 class ContextProvider;
(...skipping 11 matching lines...) Expand all
35 34
36 namespace content { 35 namespace content {
37 class DeviceMotionEventPump; 36 class DeviceMotionEventPump;
38 class DeviceOrientationEventPump; 37 class DeviceOrientationEventPump;
39 class QuotaMessageFilter; 38 class QuotaMessageFilter;
40 class RendererClipboardClient; 39 class RendererClipboardClient;
41 class ThreadSafeSender; 40 class ThreadSafeSender;
42 class WebClipboardImpl; 41 class WebClipboardImpl;
43 class WebCryptoImpl; 42 class WebCryptoImpl;
44 class WebFileSystemImpl; 43 class WebFileSystemImpl;
45 class WebSharedWorkerRepositoryImpl;
46 44
47 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl 45 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
48 : public WebKitPlatformSupportImpl { 46 : public WebKitPlatformSupportImpl {
49 public: 47 public:
50 RendererWebKitPlatformSupportImpl(); 48 RendererWebKitPlatformSupportImpl();
51 virtual ~RendererWebKitPlatformSupportImpl(); 49 virtual ~RendererWebKitPlatformSupportImpl();
52 50
53 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { 51 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) {
54 plugin_refresh_allowed_ = plugin_refresh_allowed; 52 plugin_refresh_allowed_ = plugin_refresh_allowed;
55 } 53 }
(...skipping 29 matching lines...) Expand all
85 const WebKit::WebString& origin_identifier); 83 const WebKit::WebString& origin_identifier);
86 virtual WebKit::WebString signedPublicKeyAndChallengeString( 84 virtual WebKit::WebString signedPublicKeyAndChallengeString(
87 unsigned key_size_index, 85 unsigned key_size_index,
88 const WebKit::WebString& challenge, 86 const WebKit::WebString& challenge,
89 const WebKit::WebURL& url); 87 const WebKit::WebURL& url);
90 virtual void getPluginList(bool refresh, 88 virtual void getPluginList(bool refresh,
91 WebKit::WebPluginListBuilder* builder); 89 WebKit::WebPluginListBuilder* builder);
92 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile); 90 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile);
93 virtual WebKit::WebIDBFactory* idbFactory(); 91 virtual WebKit::WebIDBFactory* idbFactory();
94 virtual WebKit::WebFileSystem* fileSystem(); 92 virtual WebKit::WebFileSystem* fileSystem();
95 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
96 virtual bool canAccelerate2dCanvas(); 93 virtual bool canAccelerate2dCanvas();
97 virtual bool isThreadedCompositingEnabled(); 94 virtual bool isThreadedCompositingEnabled();
98 virtual double audioHardwareSampleRate(); 95 virtual double audioHardwareSampleRate();
99 virtual size_t audioHardwareBufferSize(); 96 virtual size_t audioHardwareBufferSize();
100 virtual unsigned audioHardwareOutputChannels(); 97 virtual unsigned audioHardwareOutputChannels();
101 98
102 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. 99 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
103 virtual WebKit::WebAudioDevice* createAudioDevice( 100 virtual WebKit::WebAudioDevice* createAudioDevice(
104 size_t buffer_size, unsigned channels, double sample_rate, 101 size_t buffer_size, unsigned channels, double sample_rate,
105 WebKit::WebAudioDevice::RenderCallback* callback); 102 WebKit::WebAudioDevice::RenderCallback* callback);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 186
190 // This counter keeps track of the number of times sudden termination is 187 // This counter keeps track of the number of times sudden termination is
191 // enabled or disabled. It starts at 0 (enabled) and for every disable 188 // enabled or disabled. It starts at 0 (enabled) and for every disable
192 // increments by 1, for every enable decrements by 1. When it reaches 0, 189 // increments by 1, for every enable decrements by 1. When it reaches 0,
193 // we tell the browser to enable fast termination. 190 // we tell the browser to enable fast termination.
194 int sudden_termination_disables_; 191 int sudden_termination_disables_;
195 192
196 // If true, then a GetPlugins call is allowed to rescan the disk. 193 // If true, then a GetPlugins call is allowed to rescan the disk.
197 bool plugin_refresh_allowed_; 194 bool plugin_refresh_allowed_;
198 195
199 // Implementation of the WebSharedWorkerRepository APIs (provides an interface
200 // to WorkerService on the browser thread.
201 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_;
202
203 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 196 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
204 197
205 scoped_ptr<WebFileSystemImpl> web_file_system_; 198 scoped_ptr<WebFileSystemImpl> web_file_system_;
206 199
207 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 200 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
208 201
209 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; 202 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
210 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; 203 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_;
211 204
212 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; 205 scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
213 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 206 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
214 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 207 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
215 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 208 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
216 209
217 webkit::WebCompositorSupportImpl compositor_support_; 210 webkit::WebCompositorSupportImpl compositor_support_;
218 211
219 scoped_ptr<WebCryptoImpl> web_crypto_; 212 scoped_ptr<WebCryptoImpl> web_crypto_;
220 }; 213 };
221 214
222 } // namespace content 215 } // namespace content
223 216
224 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 217 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698