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

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

Issue 1031063002: Cache Storage: Implement Blink Platform API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better name for origin arg Created 5 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "content/renderer/gamepad_shared_memory_reader.h" 47 #include "content/renderer/gamepad_shared_memory_reader.h"
48 #include "content/renderer/media/audio_decoder.h" 48 #include "content/renderer/media/audio_decoder.h"
49 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 49 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
50 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 50 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
51 #include "content/renderer/render_thread_impl.h" 51 #include "content/renderer/render_thread_impl.h"
52 #include "content/renderer/renderer_clipboard_delegate.h" 52 #include "content/renderer/renderer_clipboard_delegate.h"
53 #include "content/renderer/scheduler/renderer_scheduler.h" 53 #include "content/renderer/scheduler/renderer_scheduler.h"
54 #include "content/renderer/scheduler/web_scheduler_impl.h" 54 #include "content/renderer/scheduler/web_scheduler_impl.h"
55 #include "content/renderer/scheduler/webthread_impl_for_scheduler.h" 55 #include "content/renderer/scheduler/webthread_impl_for_scheduler.h"
56 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 56 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
57 #include "content/renderer/service_worker/webserviceworkercachestorage_impl.h"
57 #include "content/renderer/webclipboard_impl.h" 58 #include "content/renderer/webclipboard_impl.h"
58 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 59 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
59 #include "content/renderer/webpublicsuffixlist_impl.h" 60 #include "content/renderer/webpublicsuffixlist_impl.h"
60 #include "gpu/config/gpu_info.h" 61 #include "gpu/config/gpu_info.h"
61 #include "ipc/ipc_sync_message_filter.h" 62 #include "ipc/ipc_sync_message_filter.h"
62 #include "media/audio/audio_output_device.h" 63 #include "media/audio/audio_output_device.h"
63 #include "media/base/audio_hardware_config.h" 64 #include "media/base/audio_hardware_config.h"
64 #include "media/base/key_systems.h" 65 #include "media/base/key_systems.h"
65 #include "media/blink/webcontentdecryptionmodule_impl.h" 66 #include "media/blink/webcontentdecryptionmodule_impl.h"
66 #include "media/filters/stream_parser_factory.h" 67 #include "media/filters/stream_parser_factory.h"
67 #include "net/base/mime_util.h" 68 #include "net/base/mime_util.h"
68 #include "net/base/net_util.h" 69 #include "net/base/net_util.h"
70 #include "storage/common/database/database_identifier.h"
69 #include "storage/common/quota/quota_types.h" 71 #include "storage/common/quota/quota_types.h"
70 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h" 72 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
71 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 73 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
72 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" 74 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h"
73 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" 75 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
74 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" 76 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h"
75 #include "third_party/WebKit/public/platform/WebFileInfo.h" 77 #include "third_party/WebKit/public/platform/WebFileInfo.h"
76 #include "third_party/WebKit/public/platform/WebGamepads.h" 78 #include "third_party/WebKit/public/platform/WebGamepads.h"
77 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 79 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
78 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" 80 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 386
385 387
386 //------------------------------------------------------------------------------ 388 //------------------------------------------------------------------------------
387 389
388 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() { 390 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() {
389 return web_idb_factory_.get(); 391 return web_idb_factory_.get();
390 } 392 }
391 393
392 //------------------------------------------------------------------------------ 394 //------------------------------------------------------------------------------
393 395
396 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage(
397 const WebString& origin_identifier) {
398 const GURL origin =
399 storage::GetOriginFromIdentifier(origin_identifier.utf8());
400 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(),
401 origin);
402 }
403
404 //------------------------------------------------------------------------------
405
394 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() { 406 WebFileSystem* RendererBlinkPlatformImpl::fileSystem() {
395 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_); 407 return WebFileSystemImpl::ThreadSpecificInstance(default_task_runner_);
396 } 408 }
397 409
398 //------------------------------------------------------------------------------ 410 //------------------------------------------------------------------------------
399 411
400 WebMimeRegistry::SupportsType 412 WebMimeRegistry::SupportsType
401 RendererBlinkPlatformImpl::MimeRegistry::supportsMediaMIMEType( 413 RendererBlinkPlatformImpl::MimeRegistry::supportsMediaMIMEType(
402 const WebString& mime_type, 414 const WebString& mime_type,
403 const WebString& codecs, 415 const WebString& codecs,
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 //------------------------------------------------------------------------------ 1213 //------------------------------------------------------------------------------
1202 1214
1203 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1215 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1204 const blink::WebBatteryStatus& status) { 1216 const blink::WebBatteryStatus& status) {
1205 if (!g_test_battery_status_listener) 1217 if (!g_test_battery_status_listener)
1206 return; 1218 return;
1207 g_test_battery_status_listener->updateBatteryStatus(status); 1219 g_test_battery_status_listener->updateBatteryStatus(status);
1208 } 1220 }
1209 1221
1210 } // namespace content 1222 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/renderer/service_worker/embedded_worker_context_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698