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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Allow cpp_only to be set by the invoker. Created 4 years, 2 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 #endif 274 #endif
275 275
276 // ChildThread may not exist in some tests. 276 // ChildThread may not exist in some tests.
277 if (ChildThreadImpl::current()) { 277 if (ChildThreadImpl::current()) {
278 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); 278 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter();
279 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); 279 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
280 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); 280 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter();
281 blob_registry_.reset(new WebBlobRegistryImpl( 281 blob_registry_.reset(new WebBlobRegistryImpl(
282 RenderThreadImpl::current()->GetIOTaskRunner().get(), 282 RenderThreadImpl::current()->GetIOTaskRunner().get(),
283 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); 283 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get()));
284 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); 284 web_idb_factory_.reset(new WebIDBFactoryImpl(
285 sync_message_filter_, thread_safe_sender_,
286 RenderThreadImpl::current()->GetIOTaskRunner().get()));
285 web_database_observer_impl_.reset( 287 web_database_observer_impl_.reset(
286 new WebDatabaseObserverImpl(sync_message_filter_.get())); 288 new WebDatabaseObserverImpl(sync_message_filter_.get()));
287 } 289 }
288 290
289 top_level_blame_context_.Initialize(); 291 top_level_blame_context_.Initialize();
290 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); 292 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_);
291 } 293 }
292 294
293 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { 295 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
294 WebFileSystemImpl::DeleteThreadSpecificInstance(); 296 WebFileSystemImpl::DeleteThreadSpecificInstance();
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 return &trial_token_validator_; 1338 return &trial_token_validator_;
1337 } 1339 }
1338 1340
1339 void RendererBlinkPlatformImpl::workerContextCreated( 1341 void RendererBlinkPlatformImpl::workerContextCreated(
1340 const v8::Local<v8::Context>& worker) { 1342 const v8::Local<v8::Context>& worker) {
1341 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1343 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1342 worker); 1344 worker);
1343 } 1345 }
1344 1346
1345 } // namespace content 1347 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698