| 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 15 matching lines...) Expand all Loading... |
| 26 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" | 26 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" |
| 27 #include "components/url_formatter/url_formatter.h" | 27 #include "components/url_formatter/url_formatter.h" |
| 28 #include "content/child/database_util.h" | 28 #include "content/child/database_util.h" |
| 29 #include "content/child/file_info_util.h" | 29 #include "content/child/file_info_util.h" |
| 30 #include "content/child/fileapi/webfilesystem_impl.h" | 30 #include "content/child/fileapi/webfilesystem_impl.h" |
| 31 #include "content/child/indexed_db/webidbfactory_impl.h" | 31 #include "content/child/indexed_db/webidbfactory_impl.h" |
| 32 #include "content/child/npapi/npobject_util.h" | 32 #include "content/child/npapi/npobject_util.h" |
| 33 #include "content/child/quota_dispatcher.h" | 33 #include "content/child/quota_dispatcher.h" |
| 34 #include "content/child/quota_message_filter.h" | 34 #include "content/child/quota_message_filter.h" |
| 35 #include "content/child/simple_webmimeregistry_impl.h" | 35 #include "content/child/simple_webmimeregistry_impl.h" |
| 36 #include "content/child/storage_util.h" |
| 36 #include "content/child/thread_safe_sender.h" | 37 #include "content/child/thread_safe_sender.h" |
| 37 #include "content/child/web_database_observer_impl.h" | 38 #include "content/child/web_database_observer_impl.h" |
| 38 #include "content/child/web_url_loader_impl.h" | 39 #include "content/child/web_url_loader_impl.h" |
| 39 #include "content/child/webblobregistry_impl.h" | 40 #include "content/child/webblobregistry_impl.h" |
| 40 #include "content/child/webfileutilities_impl.h" | 41 #include "content/child/webfileutilities_impl.h" |
| 41 #include "content/child/webmessageportchannel_impl.h" | 42 #include "content/child/webmessageportchannel_impl.h" |
| 42 #include "content/common/file_utilities_messages.h" | 43 #include "content/common/file_utilities_messages.h" |
| 43 #include "content/common/frame_messages.h" | 44 #include "content/common/frame_messages.h" |
| 44 #include "content/common/gpu/client/context_provider_command_buffer.h" | 45 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 45 #include "content/common/gpu/client/gpu_channel_host.h" | 46 #include "content/common/gpu/client/gpu_channel_host.h" |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 //------------------------------------------------------------------------------ | 430 //------------------------------------------------------------------------------ |
| 430 | 431 |
| 431 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() { | 432 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() { |
| 432 return web_idb_factory_.get(); | 433 return web_idb_factory_.get(); |
| 433 } | 434 } |
| 434 | 435 |
| 435 //------------------------------------------------------------------------------ | 436 //------------------------------------------------------------------------------ |
| 436 | 437 |
| 437 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage( | 438 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage( |
| 438 const blink::WebSecurityOrigin& security_origin) { | 439 const blink::WebSecurityOrigin& security_origin) { |
| 439 const GURL origin = blink::WebStringToGURL(security_origin.toString()); | 440 return new WebServiceWorkerCacheStorageImpl( |
| 440 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(), | 441 thread_safe_sender_.get(), WebSecurityOriginToGURL(security_origin)); |
| 441 origin); | |
| 442 } | 442 } |
| 443 | 443 |
| 444 //------------------------------------------------------------------------------ | 444 //------------------------------------------------------------------------------ |
| 445 | 445 |
| 446 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() { | 446 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() { |
| 447 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_); | 447 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_); |
| 448 } | 448 } |
| 449 | 449 |
| 450 //------------------------------------------------------------------------------ | 450 //------------------------------------------------------------------------------ |
| 451 | 451 |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 //------------------------------------------------------------------------------ | 1266 //------------------------------------------------------------------------------ |
| 1267 | 1267 |
| 1268 blink::WebTrialTokenValidator* | 1268 blink::WebTrialTokenValidator* |
| 1269 RendererBlinkPlatformImpl::trialTokenValidator() { | 1269 RendererBlinkPlatformImpl::trialTokenValidator() { |
| 1270 return &trial_token_validator_; | 1270 return &trial_token_validator_; |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 } // namespace content | 1273 } // namespace content |
| OLD | NEW |