| 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 #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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #include "content/renderer/webpublicsuffixlist_impl.h" | 76 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 77 #include "gpu/config/gpu_info.h" | 77 #include "gpu/config/gpu_info.h" |
| 78 #include "ipc/ipc_sync_message_filter.h" | 78 #include "ipc/ipc_sync_message_filter.h" |
| 79 #include "media/audio/audio_output_device.h" | 79 #include "media/audio/audio_output_device.h" |
| 80 #include "media/base/audio_hardware_config.h" | 80 #include "media/base/audio_hardware_config.h" |
| 81 #include "media/base/mime_util.h" | 81 #include "media/base/mime_util.h" |
| 82 #include "media/blink/webcontentdecryptionmodule_impl.h" | 82 #include "media/blink/webcontentdecryptionmodule_impl.h" |
| 83 #include "media/filters/stream_parser_factory.h" | 83 #include "media/filters/stream_parser_factory.h" |
| 84 #include "storage/common/database/database_identifier.h" | 84 #include "storage/common/database/database_identifier.h" |
| 85 #include "storage/common/quota/quota_types.h" | 85 #include "storage/common/quota/quota_types.h" |
| 86 #include "third_party/WebKit/public/platform/BlameContext.h" |
| 86 #include "third_party/WebKit/public/platform/FilePathConversion.h" | 87 #include "third_party/WebKit/public/platform/FilePathConversion.h" |
| 87 #include "third_party/WebKit/public/platform/URLConversion.h" | 88 #include "third_party/WebKit/public/platform/URLConversion.h" |
| 88 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 89 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
| 89 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" | 90 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" |
| 90 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 91 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 91 #include "third_party/WebKit/public/platform/WebGamepads.h" | 92 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 92 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 93 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
| 93 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 94 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
| 94 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" | 95 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
| 95 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 96 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 child_thread ? child_thread->resource_dispatcher() : NULL, | 293 child_thread ? child_thread->resource_dispatcher() : NULL, |
| 293 make_scoped_ptr(currentThread()->getWebTaskRunner()->clone())); | 294 make_scoped_ptr(currentThread()->getWebTaskRunner()->clone())); |
| 294 } | 295 } |
| 295 | 296 |
| 296 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { | 297 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { |
| 297 if (main_thread_->isCurrentThread()) | 298 if (main_thread_->isCurrentThread()) |
| 298 return main_thread_.get(); | 299 return main_thread_.get(); |
| 299 return BlinkPlatformImpl::currentThread(); | 300 return BlinkPlatformImpl::currentThread(); |
| 300 } | 301 } |
| 301 | 302 |
| 303 blink::BlameContext* RendererBlinkPlatformImpl::threadBlameContext() { |
| 304 if (!main_thread_->isCurrentThread()) |
| 305 return nullptr; |
| 306 return RenderThreadImpl::current()->blame_context(); |
| 307 } |
| 308 |
| 302 blink::WebClipboard* RendererBlinkPlatformImpl::clipboard() { | 309 blink::WebClipboard* RendererBlinkPlatformImpl::clipboard() { |
| 303 blink::WebClipboard* clipboard = | 310 blink::WebClipboard* clipboard = |
| 304 GetContentClient()->renderer()->OverrideWebClipboard(); | 311 GetContentClient()->renderer()->OverrideWebClipboard(); |
| 305 if (clipboard) | 312 if (clipboard) |
| 306 return clipboard; | 313 return clipboard; |
| 307 return clipboard_.get(); | 314 return clipboard_.get(); |
| 308 } | 315 } |
| 309 | 316 |
| 310 blink::WebMimeRegistry* RendererBlinkPlatformImpl::mimeRegistry() { | 317 blink::WebMimeRegistry* RendererBlinkPlatformImpl::mimeRegistry() { |
| 311 return mime_registry_.get(); | 318 return mime_registry_.get(); |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 } | 1271 } |
| 1265 | 1272 |
| 1266 //------------------------------------------------------------------------------ | 1273 //------------------------------------------------------------------------------ |
| 1267 | 1274 |
| 1268 blink::WebTrialTokenValidator* | 1275 blink::WebTrialTokenValidator* |
| 1269 RendererBlinkPlatformImpl::trialTokenValidator() { | 1276 RendererBlinkPlatformImpl::trialTokenValidator() { |
| 1270 return &trial_token_validator_; | 1277 return &trial_token_validator_; |
| 1271 } | 1278 } |
| 1272 | 1279 |
| 1273 } // namespace content | 1280 } // namespace content |
| OLD | NEW |