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

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

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: added shared memory test, and fixed memory leak Created 4 years, 10 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 } else { 260 } else {
261 DVLOG(1) << "Disabling sandbox support for testing."; 261 DVLOG(1) << "Disabling sandbox support for testing.";
262 } 262 }
263 #endif 263 #endif
264 264
265 // ChildThread may not exist in some tests. 265 // ChildThread may not exist in some tests.
266 if (ChildThreadImpl::current()) { 266 if (ChildThreadImpl::current()) {
267 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); 267 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter();
268 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); 268 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
269 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); 269 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter();
270 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); 270 blob_registry_.reset(new WebBlobRegistryImpl(
271 RenderThreadImpl::current()->GetIOMessageLoopProxy().get(),
272 thread_safe_sender_.get()));
271 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); 273 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get()));
272 web_database_observer_impl_.reset( 274 web_database_observer_impl_.reset(
273 new WebDatabaseObserverImpl(sync_message_filter_.get())); 275 new WebDatabaseObserverImpl(sync_message_filter_.get()));
274 } 276 }
275 } 277 }
276 278
277 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { 279 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
278 WebFileSystemImpl::DeleteThreadSpecificInstance(); 280 WebFileSystemImpl::DeleteThreadSpecificInstance();
279 } 281 }
280 282
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 } 1301 }
1300 1302
1301 //------------------------------------------------------------------------------ 1303 //------------------------------------------------------------------------------
1302 1304
1303 blink::WebTrialTokenValidator* 1305 blink::WebTrialTokenValidator*
1304 RendererBlinkPlatformImpl::trialTokenValidator() { 1306 RendererBlinkPlatformImpl::trialTokenValidator() {
1305 return &trial_token_validator_; 1307 return &trial_token_validator_;
1306 } 1308 }
1307 1309
1308 } // namespace content 1310 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698