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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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 12 matching lines...) Expand all
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "components/scheduler/child/web_scheduler_impl.h" 24 #include "components/scheduler/child/web_scheduler_impl.h"
25 #include "components/scheduler/child/web_task_runner_impl.h" 25 #include "components/scheduler/child/web_task_runner_impl.h"
26 #include "components/scheduler/renderer/renderer_scheduler.h" 26 #include "components/scheduler/renderer/renderer_scheduler.h"
27 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" 27 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h"
28 #include "components/url_formatter/url_formatter.h" 28 #include "components/url_formatter/url_formatter.h"
29 #include "content/child/blob_storage/webblobregistry_impl.h" 29 #include "content/child/blob_storage/webblobregistry_impl.h"
30 #include "content/child/database_util.h" 30 #include "content/child/database_util.h"
31 #include "content/child/file_info_util.h" 31 #include "content/child/file_info_util.h"
32 #include "content/child/fileapi/webfilesystem_impl.h" 32 #include "content/child/fileapi/webfilesystem_impl.h"
33 #include "content/child/indexed_db/webidbfactory_impl.h"
34 #include "content/child/quota_dispatcher.h" 33 #include "content/child/quota_dispatcher.h"
35 #include "content/child/quota_message_filter.h" 34 #include "content/child/quota_message_filter.h"
36 #include "content/child/simple_webmimeregistry_impl.h" 35 #include "content/child/simple_webmimeregistry_impl.h"
37 #include "content/child/storage_util.h" 36 #include "content/child/storage_util.h"
38 #include "content/child/thread_safe_sender.h" 37 #include "content/child/thread_safe_sender.h"
39 #include "content/child/web_database_observer_impl.h" 38 #include "content/child/web_database_observer_impl.h"
40 #include "content/child/web_url_loader_impl.h" 39 #include "content/child/web_url_loader_impl.h"
41 #include "content/child/webfileutilities_impl.h" 40 #include "content/child/webfileutilities_impl.h"
42 #include "content/child/webmessageportchannel_impl.h" 41 #include "content/child/webmessageportchannel_impl.h"
43 #include "content/common/file_utilities_messages.h" 42 #include "content/common/file_utilities_messages.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 142
144 using blink::Platform; 143 using blink::Platform;
145 using blink::WebAudioDevice; 144 using blink::WebAudioDevice;
146 using blink::WebBlobRegistry; 145 using blink::WebBlobRegistry;
147 using blink::WebCanvasCaptureHandler; 146 using blink::WebCanvasCaptureHandler;
148 using blink::WebDatabaseObserver; 147 using blink::WebDatabaseObserver;
149 using blink::WebFileInfo; 148 using blink::WebFileInfo;
150 using blink::WebFileSystem; 149 using blink::WebFileSystem;
151 using blink::WebGamepad; 150 using blink::WebGamepad;
152 using blink::WebGamepads; 151 using blink::WebGamepads;
153 using blink::WebIDBFactory;
154 using blink::WebImageCaptureFrameGrabber; 152 using blink::WebImageCaptureFrameGrabber;
155 using blink::WebMIDIAccessor; 153 using blink::WebMIDIAccessor;
156 using blink::WebMediaPlayer; 154 using blink::WebMediaPlayer;
157 using blink::WebMediaRecorderHandler; 155 using blink::WebMediaRecorderHandler;
158 using blink::WebMediaStream; 156 using blink::WebMediaStream;
159 using blink::WebMediaStreamCenter; 157 using blink::WebMediaStreamCenter;
160 using blink::WebMediaStreamCenterClient; 158 using blink::WebMediaStreamCenterClient;
161 using blink::WebMediaStreamTrack; 159 using blink::WebMediaStreamTrack;
162 using blink::WebMimeRegistry; 160 using blink::WebMimeRegistry;
163 using blink::WebRTCPeerConnectionHandler; 161 using blink::WebRTCPeerConnectionHandler;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 #endif 263 #endif
266 264
267 // ChildThread may not exist in some tests. 265 // ChildThread may not exist in some tests.
268 if (ChildThreadImpl::current()) { 266 if (ChildThreadImpl::current()) {
269 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); 267 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter();
270 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); 268 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
271 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); 269 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter();
272 blob_registry_.reset(new WebBlobRegistryImpl( 270 blob_registry_.reset(new WebBlobRegistryImpl(
273 RenderThreadImpl::current()->GetIOTaskRunner().get(), 271 RenderThreadImpl::current()->GetIOTaskRunner().get(),
274 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); 272 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get()));
273 #if 0
275 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); 274 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get()));
275 #endif
276 web_database_observer_impl_.reset( 276 web_database_observer_impl_.reset(
277 new WebDatabaseObserverImpl(sync_message_filter_.get())); 277 new WebDatabaseObserverImpl(sync_message_filter_.get()));
278 } 278 }
279 279
280 top_level_blame_context_.Initialize(); 280 top_level_blame_context_.Initialize();
281 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); 281 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_);
282 } 282 }
283 283
284 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { 284 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
285 WebFileSystemImpl::DeleteThreadSpecificInstance(); 285 WebFileSystemImpl::DeleteThreadSpecificInstance();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 if (!local_storage_cached_areas_) { 452 if (!local_storage_cached_areas_) {
453 local_storage_cached_areas_.reset(new LocalStorageCachedAreas( 453 local_storage_cached_areas_.reset(new LocalStorageCachedAreas(
454 RenderThreadImpl::current()->GetStoragePartitionService())); 454 RenderThreadImpl::current()->GetStoragePartitionService()));
455 } 455 }
456 return new LocalStorageNamespace(local_storage_cached_areas_.get()); 456 return new LocalStorageNamespace(local_storage_cached_areas_.get());
457 } 457 }
458 458
459 return new WebStorageNamespaceImpl(); 459 return new WebStorageNamespaceImpl();
460 } 460 }
461 461
462
463 //------------------------------------------------------------------------------
464
465 WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() {
466 return web_idb_factory_.get();
467 }
468
469 //------------------------------------------------------------------------------ 462 //------------------------------------------------------------------------------
470 463
471 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage( 464 blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage(
472 const blink::WebSecurityOrigin& security_origin) { 465 const blink::WebSecurityOrigin& security_origin) {
473 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(), 466 return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(),
474 security_origin); 467 security_origin);
475 } 468 }
476 469
477 //------------------------------------------------------------------------------ 470 //------------------------------------------------------------------------------
478 471
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 return &trial_token_validator_; 1300 return &trial_token_validator_;
1308 } 1301 }
1309 1302
1310 void RendererBlinkPlatformImpl::workerContextCreated( 1303 void RendererBlinkPlatformImpl::workerContextCreated(
1311 const v8::Local<v8::Context>& worker) { 1304 const v8::Local<v8::Context>& worker) {
1312 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1305 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1313 worker); 1306 worker);
1314 } 1307 }
1315 1308
1316 } // namespace content 1309 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698