 Chromium Code Reviews
 Chromium Code Reviews Issue 1411843008:
  Make blink platform time consistent with the timer virtual time  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1411843008:
  Make blink platform time consistent with the timer virtual time  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 void stopListening(blink::WebPlatformEventType) override; | 163 void stopListening(blink::WebPlatformEventType) override; | 
| 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 double currentTime() override; | |
| 
jochen (gone - plz use gerrit)
2015/11/05 01:25:23
can you change these two methods (and the ones on
 
alex clarke (OOO till 29th)
2015/11/05 15:27:20
This is a good idea.  Too bad we can't use base::T
 | |
| 174 double monotonicallyIncreasingTime() override; | |
| 173 | 175 | 
| 174 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 176 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 
| 175 // with |type| to |observer|. If there was already an observer associated to | 177 // with |type| to |observer|. If there was already an observer associated to | 
| 176 // the given |type|, it will be replaced. | 178 // the given |type|, it will be replaced. | 
| 177 // Note that |observer| will be owned by this object after the call. | 179 // Note that |observer| will be owned by this object after the call. | 
| 178 void SetPlatformEventObserverForTesting( | 180 void SetPlatformEventObserverForTesting( | 
| 179 blink::WebPlatformEventType type, | 181 blink::WebPlatformEventType type, | 
| 180 scoped_ptr<PlatformEventObserverBase> observer); | 182 scoped_ptr<PlatformEventObserverBase> observer); | 
| 181 | 183 | 
| 182 // Disables the WebSandboxSupport implementation for testing. | 184 // Disables the WebSandboxSupport implementation for testing. | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 | 270 | 
| 269 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 271 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 
| 270 | 272 | 
| 271 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 273 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 
| 272 | 274 | 
| 273 // Handle to the Vibration mojo service. | 275 // Handle to the Vibration mojo service. | 
| 274 device::VibrationManagerPtr vibration_manager_; | 276 device::VibrationManagerPtr vibration_manager_; | 
| 275 | 277 | 
| 276 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 278 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 
| 277 | 279 | 
| 280 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | |
| 281 | |
| 278 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 282 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 
| 279 }; | 283 }; | 
| 280 | 284 | 
| 281 } // namespace content | 285 } // namespace content | 
| 282 | 286 | 
| 283 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 287 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 
| OLD | NEW |