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

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

Issue 1088053003: Patch 1/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 8 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
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_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 namespace IPC { 28 namespace IPC {
29 class SyncMessageFilter; 29 class SyncMessageFilter;
30 } 30 }
31 31
32 namespace blink { 32 namespace blink {
33 class WebBatteryStatus; 33 class WebBatteryStatus;
34 class WebDeviceMotionData; 34 class WebDeviceMotionData;
35 class WebDeviceOrientationData; 35 class WebDeviceOrientationData;
36 class WebGraphicsContext3DProvider; 36 class WebGraphicsContext3DProvider;
37 class WebServiceWorkerCacheStorage; 37 class WebServiceWorkerCacheStorage;
38 class WebScheduler;
38 } 39 }
39 40
40 namespace content { 41 namespace content {
41 class BatteryStatusDispatcher; 42 class BatteryStatusDispatcher;
42 class DeviceLightEventPump; 43 class DeviceLightEventPump;
43 class DeviceMotionEventPump; 44 class DeviceMotionEventPump;
44 class DeviceOrientationEventPump; 45 class DeviceOrientationEventPump;
45 class PlatformEventObserverBase; 46 class PlatformEventObserverBase;
46 class QuotaMessageFilter; 47 class QuotaMessageFilter;
47 class RendererClipboardDelegate; 48 class RendererClipboardDelegate;
48 class RendererScheduler; 49 class RendererScheduler;
49 class RenderView; 50 class RenderView;
50 class ThreadSafeSender; 51 class ThreadSafeSender;
51 class WebClipboardImpl; 52 class WebClipboardImpl;
52 class WebDatabaseObserverImpl; 53 class WebDatabaseObserverImpl;
53 class WebFileSystemImpl; 54 class WebFileSystemImpl;
54 class WebThreadImplForRendererScheduler; 55 class WebThreadImplForRendererScheduler;
55 class WebSchedulerImpl; 56 class RendererWebSchedulerImpl;
56 57
57 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { 58 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
58 public: 59 public:
59 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); 60 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler);
60 virtual ~RendererBlinkPlatformImpl(); 61 virtual ~RendererBlinkPlatformImpl();
61 62
62 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { 63 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) {
63 plugin_refresh_allowed_ = plugin_refresh_allowed; 64 plugin_refresh_allowed_ = plugin_refresh_allowed;
64 } 65 }
65 // Platform methods: 66 // Platform methods:
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Factory that takes a type and return PlatformEventObserverBase that matches 204 // Factory that takes a type and return PlatformEventObserverBase that matches
204 // it. 205 // it.
205 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( 206 static PlatformEventObserverBase* CreatePlatformEventObserverFromType(
206 blink::WebPlatformEventType type); 207 blink::WebPlatformEventType type);
207 208
208 // Use the data previously set via SetMockDevice...DataForTesting() and send 209 // Use the data previously set via SetMockDevice...DataForTesting() and send
209 // them to the registered listener. 210 // them to the registered listener.
210 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); 211 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type);
211 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); 212 device::VibrationManagerPtr& GetConnectedVibrationManagerService();
212 213
213 scoped_ptr<WebSchedulerImpl> web_scheduler_; 214 scoped_ptr<RendererWebSchedulerImpl> web_scheduler_;
214 scoped_ptr<WebThreadImplForRendererScheduler> main_thread_; 215 scoped_ptr<WebThreadImplForRendererScheduler> main_thread_;
215 216
216 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; 217 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_;
217 scoped_ptr<WebClipboardImpl> clipboard_; 218 scoped_ptr<WebClipboardImpl> clipboard_;
218 219
219 class FileUtilities; 220 class FileUtilities;
220 scoped_ptr<FileUtilities> file_utilities_; 221 scoped_ptr<FileUtilities> file_utilities_;
221 222
222 class MimeRegistry; 223 class MimeRegistry;
223 scoped_ptr<MimeRegistry> mime_registry_; 224 scoped_ptr<MimeRegistry> mime_registry_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 device::VibrationManagerPtr vibration_manager_; 264 device::VibrationManagerPtr vibration_manager_;
264 265
265 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 266 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
266 267
267 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 268 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
268 }; 269 };
269 270
270 } // namespace content 271 } // namespace content
271 272
272 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 273 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698