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

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: Make sure blame context is initialized early enough Created 4 years, 8 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/id_map.h" 12 #include "base/id_map.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "cc/blink/web_compositor_support_impl.h" 16 #include "cc/blink/web_compositor_support_impl.h"
17 #include "content/child/blink_platform_impl.h" 17 #include "content/child/blink_platform_impl.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" 19 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h"
20 #include "content/renderer/top_level_blame_context.h"
20 #include "content/renderer/webpublicsuffixlist_impl.h" 21 #include "content/renderer/webpublicsuffixlist_impl.h"
21 #include "device/vibration/vibration_manager.mojom.h" 22 #include "device/vibration/vibration_manager.mojom.h"
22 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 23 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" 24 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h"
24 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 25 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
25 26
26 namespace cc { 27 namespace cc {
27 class ContextProvider; 28 class ContextProvider;
28 } 29 }
29 30
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 mojo::ScopedMessagePipeHandle handle) override; 183 mojo::ScopedMessagePipeHandle handle) override;
183 void startListening(blink::WebPlatformEventType, 184 void startListening(blink::WebPlatformEventType,
184 blink::WebPlatformEventListener*) override; 185 blink::WebPlatformEventListener*) override;
185 void stopListening(blink::WebPlatformEventType) override; 186 void stopListening(blink::WebPlatformEventType) override;
186 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, 187 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition,
187 blink::WebStorageQuotaType, 188 blink::WebStorageQuotaType,
188 blink::WebStorageQuotaCallbacks) override; 189 blink::WebStorageQuotaCallbacks) override;
189 void vibrate(unsigned int milliseconds) override; 190 void vibrate(unsigned int milliseconds) override;
190 void cancelVibration() override; 191 void cancelVibration() override;
191 blink::WebThread* currentThread() override; 192 blink::WebThread* currentThread() override;
193 blink::BlameContext* topLevelBlameContext() override;
192 void recordRappor(const char* metric, 194 void recordRappor(const char* metric,
193 const blink::WebString& sample) override; 195 const blink::WebString& sample) override;
194 void recordRapporURL(const char* metric, const blink::WebURL& url) override; 196 void recordRapporURL(const char* metric, const blink::WebURL& url) override;
195 197
196 blink::WebTrialTokenValidator* trialTokenValidator() override; 198 blink::WebTrialTokenValidator* trialTokenValidator() override;
197 199
198 // Set the PlatformEventObserverBase in |platform_event_observers_| associated 200 // Set the PlatformEventObserverBase in |platform_event_observers_| associated
199 // with |type| to |observer|. If there was already an observer associated to 201 // with |type| to |observer|. If there was already an observer associated to
200 // the given |type|, it will be replaced. 202 // the given |type|, it will be replaced.
201 // Note that |observer| will be owned by this object after the call. 203 // Note that |observer| will be owned by this object after the call.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 cc_blink::WebCompositorSupportImpl compositor_support_; 289 cc_blink::WebCompositorSupportImpl compositor_support_;
288 290
289 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 291 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
290 292
291 // Handle to the Vibration mojo service. 293 // Handle to the Vibration mojo service.
292 device::VibrationManagerPtr vibration_manager_; 294 device::VibrationManagerPtr vibration_manager_;
293 295
294 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 296 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
295 297
296 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 298 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
299 TopLevelBlameContext top_level_blame_context_;
297 300
298 WebTrialTokenValidatorImpl trial_token_validator_; 301 WebTrialTokenValidatorImpl trial_token_validator_;
299 302
300 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; 303 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_;
301 304
302 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 305 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
303 }; 306 };
304 307
305 } // namespace content 308 } // namespace content
306 309
307 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 310 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698