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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2774343002: Hook up BackgroundFetchServiceImpl::Fetch() to start a fetch (Closed)
Patch Set: rebase Created 3 years, 8 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), 1288 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create),
1289 file_task_runner); 1289 file_task_runner);
1290 #endif 1290 #endif
1291 1291
1292 registry->AddInterface(base::Bind(&device::GamepadMonitor::Create)); 1292 registry->AddInterface(base::Bind(&device::GamepadMonitor::Create));
1293 1293
1294 registry->AddInterface( 1294 registry->AddInterface(
1295 base::Bind(&PushMessagingManager::BindRequest, 1295 base::Bind(&PushMessagingManager::BindRequest,
1296 base::Unretained(push_messaging_manager_.get()))); 1296 base::Unretained(push_messaging_manager_.get())));
1297 1297
1298 registry->AddInterface(base::Bind( 1298 registry->AddInterface(
1299 &BackgroundFetchServiceImpl::Create, 1299 base::Bind(&BackgroundFetchServiceImpl::Create, GetID(),
1300 make_scoped_refptr(storage_partition_impl_->GetBackgroundFetchContext()), 1300 make_scoped_refptr(
1301 make_scoped_refptr(storage_partition_impl_->GetServiceWorkerContext()))); 1301 storage_partition_impl_->GetBackgroundFetchContext())));
1302 1302
1303 registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest, 1303 registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest,
1304 base::Unretained(this))); 1304 base::Unretained(this)));
1305 1305
1306 registry->AddInterface( 1306 registry->AddInterface(
1307 base::Bind(&VideoCaptureHost::Create, 1307 base::Bind(&VideoCaptureHost::Create,
1308 BrowserMainLoop::GetInstance()->media_stream_manager())); 1308 BrowserMainLoop::GetInstance()->media_stream_manager()));
1309 1309
1310 // This is to support usage of WebSockets in cases in which there is no 1310 // This is to support usage of WebSockets in cases in which there is no
1311 // associated RenderFrame (e.g., Shared Workers). 1311 // associated RenderFrame (e.g., Shared Workers).
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3072 3072
3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3074 // Capture the error message in a crash key value. 3074 // Capture the error message in a crash key value.
3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3076 bad_message::ReceivedBadMessage(render_process_id, 3076 bad_message::ReceivedBadMessage(render_process_id,
3077 bad_message::RPH_MOJO_PROCESS_ERROR); 3077 bad_message::RPH_MOJO_PROCESS_ERROR);
3078 } 3078 }
3079 3079
3080 } // namespace content 3080 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/bad_message.h ('k') | third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698