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

Side by Side Diff: content/browser/service_worker/service_worker_provider_host.cc

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: rebase and review comments Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/service_worker/service_worker_provider_host.h" 5 #include "content/browser/service_worker/service_worker_provider_host.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "content/browser/frame_host/render_frame_host_impl.h" 8 #include "content/browser/frame_host/render_frame_host_impl.h"
9 #include "content/browser/message_port_message_filter.h" 9 #include "content/browser/message_port_message_filter.h"
10 #include "content/browser/service_worker/service_worker_context_core.h" 10 #include "content/browser/service_worker/service_worker_context_core.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) { 276 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) {
277 BrowserThread::PostTask( 277 BrowserThread::PostTask(
278 BrowserThread::UI, FROM_HERE, 278 BrowserThread::UI, FROM_HERE,
279 base::Bind(&FocusOnUIThread, 279 base::Bind(&FocusOnUIThread,
280 render_process_id_, 280 render_process_id_,
281 render_frame_id_, 281 render_frame_id_,
282 callback)); 282 callback));
283 } 283 }
284 284
285 void ServiceWorkerProviderHost::GetClientInfo( 285 void ServiceWorkerProviderHost::GetClientInfo(
286 const GetClientInfoCallback& callback) { 286 const GetClientInfoCallback& callback) const {
287 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 287 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
288 base::Bind(&GetClientInfoOnUIThread, 288 base::Bind(&GetClientInfoOnUIThread,
289 render_process_id_, 289 render_process_id_,
290 render_frame_id_, 290 render_frame_id_,
291 document_url_, 291 document_url_,
292 callback)); 292 callback));
293 } 293 }
294 294
295 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern( 295 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern(
296 const GURL& pattern) { 296 const GURL& pattern) {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 context_->process_manager()->RemoveProcessReferenceFromPattern( 430 context_->process_manager()->RemoveProcessReferenceFromPattern(
431 pattern, render_process_id_); 431 pattern, render_process_id_);
432 } 432 }
433 } 433 }
434 434
435 bool ServiceWorkerProviderHost::IsContextAlive() { 435 bool ServiceWorkerProviderHost::IsContextAlive() {
436 return context_ != NULL; 436 return context_ != NULL;
437 } 437 }
438 438
439 } // namespace content 439 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698