| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 blink::WebPlatformEventListener*); | 150 blink::WebPlatformEventListener*); |
| 151 virtual void stopListening(blink::WebPlatformEventType); | 151 virtual void stopListening(blink::WebPlatformEventType); |
| 152 virtual void queryStorageUsageAndQuota( | 152 virtual void queryStorageUsageAndQuota( |
| 153 const blink::WebURL& storage_partition, | 153 const blink::WebURL& storage_partition, |
| 154 blink::WebStorageQuotaType, | 154 blink::WebStorageQuotaType, |
| 155 blink::WebStorageQuotaCallbacks); | 155 blink::WebStorageQuotaCallbacks); |
| 156 virtual void vibrate(unsigned int milliseconds); | 156 virtual void vibrate(unsigned int milliseconds); |
| 157 virtual void cancelVibration(); | 157 virtual void cancelVibration(); |
| 158 virtual blink::WebScheduler* scheduler(); | 158 virtual blink::WebScheduler* scheduler(); |
| 159 virtual blink::WebThread* currentThread(); | 159 virtual blink::WebThread* currentThread(); |
| 160 virtual void recordRappor( |
| 161 const char* metric, |
| 162 const blink::WebString& sample); |
| 160 | 163 |
| 161 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 164 // Set the PlatformEventObserverBase in |platform_event_observers_| associated |
| 162 // with |type| to |observer|. If there was already an observer associated to | 165 // with |type| to |observer|. If there was already an observer associated to |
| 163 // the given |type|, it will be replaced. | 166 // the given |type|, it will be replaced. |
| 164 // Note that |observer| will be owned by this object after the call. | 167 // Note that |observer| will be owned by this object after the call. |
| 165 void SetPlatformEventObserverForTesting( | 168 void SetPlatformEventObserverForTesting( |
| 166 blink::WebPlatformEventType type, | 169 blink::WebPlatformEventType type, |
| 167 scoped_ptr<PlatformEventObserverBase> observer); | 170 scoped_ptr<PlatformEventObserverBase> observer); |
| 168 | 171 |
| 169 // Disables the WebSandboxSupport implementation for testing. | 172 // Disables the WebSandboxSupport implementation for testing. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 device::VibrationManagerPtr vibration_manager_; | 262 device::VibrationManagerPtr vibration_manager_; |
| 260 | 263 |
| 261 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 264 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 262 | 265 |
| 263 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 266 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 } // namespace content | 269 } // namespace content |
| 267 | 270 |
| 268 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 271 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |