| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 164 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
| 165 blink::WebStorageQuotaType, | 165 blink::WebStorageQuotaType, |
| 166 blink::WebStorageQuotaCallbacks) override; | 166 blink::WebStorageQuotaCallbacks) override; |
| 167 void vibrate(unsigned int milliseconds) override; | 167 void vibrate(unsigned int milliseconds) override; |
| 168 void cancelVibration() override; | 168 void cancelVibration() override; |
| 169 blink::WebThread* currentThread() override; | 169 blink::WebThread* currentThread() override; |
| 170 void recordRappor(const char* metric, | 170 void recordRappor(const char* metric, |
| 171 const blink::WebString& sample) override; | 171 const blink::WebString& sample) override; |
| 172 void recordRapporURL(const char* metric, const blink::WebURL& url) override; | 172 void recordRapporURL(const char* metric, const blink::WebURL& url) override; |
| 173 | 173 |
| 174 double currentTime() override; |
| 175 double monotonicallyIncreasingTime() override; |
| 176 |
| 174 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 177 // Set the PlatformEventObserverBase in |platform_event_observers_| associated |
| 175 // with |type| to |observer|. If there was already an observer associated to | 178 // with |type| to |observer|. If there was already an observer associated to |
| 176 // the given |type|, it will be replaced. | 179 // the given |type|, it will be replaced. |
| 177 // Note that |observer| will be owned by this object after the call. | 180 // Note that |observer| will be owned by this object after the call. |
| 178 void SetPlatformEventObserverForTesting( | 181 void SetPlatformEventObserverForTesting( |
| 179 blink::WebPlatformEventType type, | 182 blink::WebPlatformEventType type, |
| 180 scoped_ptr<PlatformEventObserverBase> observer); | 183 scoped_ptr<PlatformEventObserverBase> observer); |
| 181 | 184 |
| 182 // Disables the WebSandboxSupport implementation for testing. | 185 // Disables the WebSandboxSupport implementation for testing. |
| 183 // Tests that do not set up a full sandbox environment should call | 186 // Tests that do not set up a full sandbox environment should call |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 271 |
| 269 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 272 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 270 | 273 |
| 271 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 274 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
| 272 | 275 |
| 273 // Handle to the Vibration mojo service. | 276 // Handle to the Vibration mojo service. |
| 274 device::VibrationManagerPtr vibration_manager_; | 277 device::VibrationManagerPtr vibration_manager_; |
| 275 | 278 |
| 276 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 279 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 277 | 280 |
| 281 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
| 282 |
| 278 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 283 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 279 }; | 284 }; |
| 280 | 285 |
| 281 } // namespace content | 286 } // namespace content |
| 282 | 287 |
| 283 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 288 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |