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