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

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: comments Created 5 years 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/location.h" 10 #include "base/location.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 } else { 248 } else {
249 DVLOG(1) << "Disabling sandbox support for testing."; 249 DVLOG(1) << "Disabling sandbox support for testing.";
250 } 250 }
251 #endif 251 #endif
252 252
253 // ChildThread may not exist in some tests. 253 // ChildThread may not exist in some tests.
254 if (ChildThreadImpl::current()) { 254 if (ChildThreadImpl::current()) {
255 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); 255 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter();
256 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); 256 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
257 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); 257 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter();
258 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); 258 blob_registry_.reset(new WebBlobRegistryImpl(
259 RenderThreadImpl::current()->GetIOMessageLoopProxy().get(),
260 thread_safe_sender_.get()));
259 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); 261 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get()));
260 web_database_observer_impl_.reset( 262 web_database_observer_impl_.reset(
261 new WebDatabaseObserverImpl(sync_message_filter_.get())); 263 new WebDatabaseObserverImpl(sync_message_filter_.get()));
262 } 264 }
263 } 265 }
264 266
265 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { 267 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
266 WebFileSystemImpl::DeleteThreadSpecificInstance(); 268 WebFileSystemImpl::DeleteThreadSpecificInstance();
267 } 269 }
268 270
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 //------------------------------------------------------------------------------ 1273 //------------------------------------------------------------------------------
1272 1274
1273 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1275 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1274 const blink::WebBatteryStatus& status) { 1276 const blink::WebBatteryStatus& status) {
1275 if (!g_test_battery_status_listener) 1277 if (!g_test_battery_status_listener)
1276 return; 1278 return;
1277 g_test_battery_status_listener->updateBatteryStatus(status); 1279 g_test_battery_status_listener->updateBatteryStatus(status);
1278 } 1280 }
1279 1281
1280 } // namespace content 1282 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698