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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 namespace content { | 52 namespace content { |
53 class BatteryStatusDispatcher; | 53 class BatteryStatusDispatcher; |
54 class DeviceLightEventPump; | 54 class DeviceLightEventPump; |
55 class DeviceMotionEventPump; | 55 class DeviceMotionEventPump; |
56 class DeviceOrientationEventPump; | 56 class DeviceOrientationEventPump; |
57 class PlatformEventObserverBase; | 57 class PlatformEventObserverBase; |
58 class QuotaMessageFilter; | 58 class QuotaMessageFilter; |
59 class RendererClipboardDelegate; | 59 class RendererClipboardDelegate; |
60 class RenderView; | 60 class RenderView; |
61 class ThreadSafeSender; | 61 class ThreadSafeSender; |
| 62 class WebBlameContextImpl; |
62 class WebClipboardImpl; | 63 class WebClipboardImpl; |
63 class WebDatabaseObserverImpl; | 64 class WebDatabaseObserverImpl; |
64 class WebFileSystemImpl; | 65 class WebFileSystemImpl; |
65 | 66 |
66 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 67 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
67 public: | 68 public: |
68 explicit RendererBlinkPlatformImpl( | 69 explicit RendererBlinkPlatformImpl( |
69 scheduler::RendererScheduler* renderer_scheduler); | 70 scheduler::RendererScheduler* renderer_scheduler); |
70 ~RendererBlinkPlatformImpl() override; | 71 ~RendererBlinkPlatformImpl() override; |
71 | 72 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 const blink::WebString& languages) override; | 181 const blink::WebString& languages) override; |
181 void startListening(blink::WebPlatformEventType, | 182 void startListening(blink::WebPlatformEventType, |
182 blink::WebPlatformEventListener*) override; | 183 blink::WebPlatformEventListener*) override; |
183 void stopListening(blink::WebPlatformEventType) override; | 184 void stopListening(blink::WebPlatformEventType) override; |
184 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 185 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
185 blink::WebStorageQuotaType, | 186 blink::WebStorageQuotaType, |
186 blink::WebStorageQuotaCallbacks) override; | 187 blink::WebStorageQuotaCallbacks) override; |
187 void vibrate(unsigned int milliseconds) override; | 188 void vibrate(unsigned int milliseconds) override; |
188 void cancelVibration() override; | 189 void cancelVibration() override; |
189 blink::WebThread* currentThread() override; | 190 blink::WebThread* currentThread() override; |
| 191 blink::WebBlameContext* threadBlameContext() override; |
190 void recordRappor(const char* metric, | 192 void recordRappor(const char* metric, |
191 const blink::WebString& sample) override; | 193 const blink::WebString& sample) override; |
192 void recordRapporURL(const char* metric, const blink::WebURL& url) override; | 194 void recordRapporURL(const char* metric, const blink::WebURL& url) override; |
193 | 195 |
194 blink::WebTrialTokenValidator* trialTokenValidator() override; | 196 blink::WebTrialTokenValidator* trialTokenValidator() override; |
195 | 197 |
196 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 198 // Set the PlatformEventObserverBase in |platform_event_observers_| associated |
197 // with |type| to |observer|. If there was already an observer associated to | 199 // with |type| to |observer|. If there was already an observer associated to |
198 // the given |type|, it will be replaced. | 200 // the given |type|, it will be replaced. |
199 // Note that |observer| will be owned by this object after the call. | 201 // Note that |observer| will be owned by this object after the call. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 296 |
295 // Handle to the Vibration mojo service. | 297 // Handle to the Vibration mojo service. |
296 device::VibrationManagerPtr vibration_manager_; | 298 device::VibrationManagerPtr vibration_manager_; |
297 | 299 |
298 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 300 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
299 | 301 |
300 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 302 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
301 | 303 |
302 TrialTokenValidator trial_token_validator_; | 304 TrialTokenValidator trial_token_validator_; |
303 | 305 |
| 306 scoped_ptr<WebBlameContextImpl> web_blame_context_; |
| 307 |
304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 308 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
305 }; | 309 }; |
306 | 310 |
307 } // namespace content | 311 } // namespace content |
308 | 312 |
309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 313 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |