OLD | NEW |
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const blink::WebDeviceOrientationData& data); | 198 const blink::WebDeviceOrientationData& data); |
199 | 199 |
200 // Notifies blink::WebBatteryStatusListener that battery status has changed. | 200 // Notifies blink::WebBatteryStatusListener that battery status has changed. |
201 void MockBatteryStatusChangedForTesting( | 201 void MockBatteryStatusChangedForTesting( |
202 const blink::WebBatteryStatus& status); | 202 const blink::WebBatteryStatus& status); |
203 | 203 |
204 WebDatabaseObserverImpl* web_database_observer_impl() { | 204 WebDatabaseObserverImpl* web_database_observer_impl() { |
205 return web_database_observer_impl_.get(); | 205 return web_database_observer_impl_.get(); |
206 } | 206 } |
207 | 207 |
| 208 blink::WebURLLoader* createURLLoader() override; |
| 209 |
208 private: | 210 private: |
209 bool CheckPreparsedJsCachingEnabled() const; | 211 bool CheckPreparsedJsCachingEnabled() const; |
210 | 212 |
211 // Factory that takes a type and return PlatformEventObserverBase that matches | 213 // Factory that takes a type and return PlatformEventObserverBase that matches |
212 // it. | 214 // it. |
213 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 215 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
214 blink::WebPlatformEventType type); | 216 blink::WebPlatformEventType type); |
215 | 217 |
216 // Use the data previously set via SetMockDevice...DataForTesting() and send | 218 // Use the data previously set via SetMockDevice...DataForTesting() and send |
217 // them to the registered listener. | 219 // them to the registered listener. |
(...skipping 29 matching lines...) Expand all Loading... |
247 | 249 |
248 scoped_ptr<blink::WebBlobRegistry> blob_registry_; | 250 scoped_ptr<blink::WebBlobRegistry> blob_registry_; |
249 | 251 |
250 WebPublicSuffixListImpl public_suffix_list_; | 252 WebPublicSuffixListImpl public_suffix_list_; |
251 | 253 |
252 scoped_ptr<DeviceLightEventPump> device_light_event_pump_; | 254 scoped_ptr<DeviceLightEventPump> device_light_event_pump_; |
253 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; | 255 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
254 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; | 256 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |
255 | 257 |
256 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; | 258 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
| 259 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; |
257 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 260 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
258 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 261 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
259 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 262 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
260 | 263 |
261 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 264 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
262 | 265 |
263 cc_blink::WebCompositorSupportImpl compositor_support_; | 266 cc_blink::WebCompositorSupportImpl compositor_support_; |
264 | 267 |
265 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 268 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
266 | 269 |
267 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 270 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
268 | 271 |
269 // Handle to the Vibration mojo service. | 272 // Handle to the Vibration mojo service. |
270 device::VibrationManagerPtr vibration_manager_; | 273 device::VibrationManagerPtr vibration_manager_; |
271 | 274 |
272 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 275 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
273 | 276 |
274 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 277 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
275 }; | 278 }; |
276 | 279 |
277 } // namespace content | 280 } // namespace content |
278 | 281 |
279 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 282 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |