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

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

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 #include "content/renderer/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "content/renderer/webpublicsuffixlist_impl.h" 77 #include "content/renderer/webpublicsuffixlist_impl.h"
78 #include "gpu/config/gpu_info.h" 78 #include "gpu/config/gpu_info.h"
79 #include "ipc/ipc_sync_message_filter.h" 79 #include "ipc/ipc_sync_message_filter.h"
80 #include "media/audio/audio_output_device.h" 80 #include "media/audio/audio_output_device.h"
81 #include "media/base/audio_hardware_config.h" 81 #include "media/base/audio_hardware_config.h"
82 #include "media/base/mime_util.h" 82 #include "media/base/mime_util.h"
83 #include "media/blink/webcontentdecryptionmodule_impl.h" 83 #include "media/blink/webcontentdecryptionmodule_impl.h"
84 #include "media/filters/stream_parser_factory.h" 84 #include "media/filters/stream_parser_factory.h"
85 #include "storage/common/database/database_identifier.h" 85 #include "storage/common/database/database_identifier.h"
86 #include "storage/common/quota/quota_types.h" 86 #include "storage/common/quota/quota_types.h"
87 #include "third_party/WebKit/public/platform/BlameContext.h"
87 #include "third_party/WebKit/public/platform/FilePathConversion.h" 88 #include "third_party/WebKit/public/platform/FilePathConversion.h"
88 #include "third_party/WebKit/public/platform/URLConversion.h" 89 #include "third_party/WebKit/public/platform/URLConversion.h"
89 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 90 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
90 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" 91 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h"
91 #include "third_party/WebKit/public/platform/WebFileInfo.h" 92 #include "third_party/WebKit/public/platform/WebFileInfo.h"
92 #include "third_party/WebKit/public/platform/WebGamepads.h" 93 #include "third_party/WebKit/public/platform/WebGamepads.h"
93 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 94 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
94 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" 95 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h"
95 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" 96 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h"
96 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 97 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 child_thread ? child_thread->resource_dispatcher() : NULL, 294 child_thread ? child_thread->resource_dispatcher() : NULL,
294 make_scoped_ptr(currentThread()->getWebTaskRunner()->clone())); 295 make_scoped_ptr(currentThread()->getWebTaskRunner()->clone()));
295 } 296 }
296 297
297 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { 298 blink::WebThread* RendererBlinkPlatformImpl::currentThread() {
298 if (main_thread_->isCurrentThread()) 299 if (main_thread_->isCurrentThread())
299 return main_thread_.get(); 300 return main_thread_.get();
300 return BlinkPlatformImpl::currentThread(); 301 return BlinkPlatformImpl::currentThread();
301 } 302 }
302 303
304 blink::BlameContext* RendererBlinkPlatformImpl::threadBlameContext() {
305 if (!main_thread_->isCurrentThread())
306 return nullptr;
307 return RenderThreadImpl::current()->blame_context();
308 }
309
303 blink::WebClipboard* RendererBlinkPlatformImpl::clipboard() { 310 blink::WebClipboard* RendererBlinkPlatformImpl::clipboard() {
304 blink::WebClipboard* clipboard = 311 blink::WebClipboard* clipboard =
305 GetContentClient()->renderer()->OverrideWebClipboard(); 312 GetContentClient()->renderer()->OverrideWebClipboard();
306 if (clipboard) 313 if (clipboard)
307 return clipboard; 314 return clipboard;
308 return clipboard_.get(); 315 return clipboard_.get();
309 } 316 }
310 317
311 blink::WebMimeRegistry* RendererBlinkPlatformImpl::mimeRegistry() { 318 blink::WebMimeRegistry* RendererBlinkPlatformImpl::mimeRegistry() {
312 return mime_registry_.get(); 319 return mime_registry_.get();
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 } 1270 }
1264 1271
1265 //------------------------------------------------------------------------------ 1272 //------------------------------------------------------------------------------
1266 1273
1267 blink::WebTrialTokenValidator* 1274 blink::WebTrialTokenValidator*
1268 RendererBlinkPlatformImpl::trialTokenValidator() { 1275 RendererBlinkPlatformImpl::trialTokenValidator() {
1269 return &trial_token_validator_; 1276 return &trial_token_validator_;
1270 } 1277 }
1271 1278
1272 } // namespace content 1279 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698