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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void stopListening(blink::WebPlatformEventType) override; | 167 void stopListening(blink::WebPlatformEventType) override; |
168 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 168 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
169 blink::WebStorageQuotaType, | 169 blink::WebStorageQuotaType, |
170 blink::WebStorageQuotaCallbacks) override; | 170 blink::WebStorageQuotaCallbacks) override; |
171 void vibrate(unsigned int milliseconds) override; | 171 void vibrate(unsigned int milliseconds) override; |
172 void cancelVibration() override; | 172 void cancelVibration() override; |
173 blink::WebThread* currentThread() override; | 173 blink::WebThread* currentThread() override; |
174 void recordRappor(const char* metric, | 174 void recordRappor(const char* metric, |
175 const blink::WebString& sample) override; | 175 const blink::WebString& sample) override; |
176 void recordRapporURL(const char* metric, const blink::WebURL& url) override; | 176 void recordRapporURL(const char* metric, const blink::WebURL& url) override; |
177 double currentTimeSeconds() override; | |
178 double monotonicallyIncreasingTimeSeconds() override; | |
179 | 177 |
180 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 178 // Set the PlatformEventObserverBase in |platform_event_observers_| associated |
181 // with |type| to |observer|. If there was already an observer associated to | 179 // with |type| to |observer|. If there was already an observer associated to |
182 // the given |type|, it will be replaced. | 180 // the given |type|, it will be replaced. |
183 // Note that |observer| will be owned by this object after the call. | 181 // Note that |observer| will be owned by this object after the call. |
184 void SetPlatformEventObserverForTesting( | 182 void SetPlatformEventObserverForTesting( |
185 blink::WebPlatformEventType type, | 183 blink::WebPlatformEventType type, |
186 scoped_ptr<PlatformEventObserverBase> observer); | 184 scoped_ptr<PlatformEventObserverBase> observer); |
187 | 185 |
188 // Disables the WebSandboxSupport implementation for testing. | 186 // Disables the WebSandboxSupport implementation for testing. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 280 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
283 | 281 |
284 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 282 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
285 | 283 |
286 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 284 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
287 }; | 285 }; |
288 | 286 |
289 } // namespace content | 287 } // namespace content |
290 | 288 |
291 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 289 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |