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