Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 namespace content { 51 namespace content {
52 class DeviceLightEventPump; 52 class DeviceLightEventPump;
53 class DeviceMotionEventPump; 53 class DeviceMotionEventPump;
54 class DeviceOrientationEventPump; 54 class DeviceOrientationEventPump;
55 class PlatformEventObserverBase; 55 class PlatformEventObserverBase;
56 class QuotaMessageFilter; 56 class QuotaMessageFilter;
57 class RendererClipboardDelegate; 57 class RendererClipboardDelegate;
58 class RenderView; 58 class RenderView;
59 class ThreadSafeSender; 59 class ThreadSafeSender;
60 class WebBlameContextImpl;
60 class WebClipboardImpl; 61 class WebClipboardImpl;
61 class WebDatabaseObserverImpl; 62 class WebDatabaseObserverImpl;
62 class WebFileSystemImpl; 63 class WebFileSystemImpl;
63 64
64 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { 65 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
65 public: 66 public:
66 explicit RendererBlinkPlatformImpl( 67 explicit RendererBlinkPlatformImpl(
67 scheduler::RendererScheduler* renderer_scheduler); 68 scheduler::RendererScheduler* renderer_scheduler);
68 ~RendererBlinkPlatformImpl() override; 69 ~RendererBlinkPlatformImpl() override;
69 70
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 mojo::ScopedMessagePipeHandle handle) override; 181 mojo::ScopedMessagePipeHandle handle) 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 290
289 // Handle to the Vibration mojo service. 291 // Handle to the Vibration mojo service.
290 device::VibrationManagerPtr vibration_manager_; 292 device::VibrationManagerPtr vibration_manager_;
291 293
292 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 294 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
293 295
294 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 296 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
295 297
296 TrialTokenValidator trial_token_validator_; 298 TrialTokenValidator trial_token_validator_;
297 299
300 scoped_ptr<WebBlameContextImpl> web_blame_context_;
301
298 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 302 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
299 }; 303 };
300 304
301 } // namespace content 305 } // namespace content
302 306
303 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 307 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698