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

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: merge with ContentBrowserClient::openWindow Created 5 years, 11 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) { 271 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) {
272 BrowserThread::PostTask( 272 BrowserThread::PostTask(
273 BrowserThread::UI, FROM_HERE, 273 BrowserThread::UI, FROM_HERE,
274 base::Bind(&FocusOnUIThread, 274 base::Bind(&FocusOnUIThread,
275 render_process_id_, 275 render_process_id_,
276 render_frame_id_, 276 render_frame_id_,
277 callback)); 277 callback));
278 } 278 }
279 279
280 void ServiceWorkerProviderHost::GetClientInfo( 280 void ServiceWorkerProviderHost::GetClientInfo(
281 const GetClientInfoCallback& callback) { 281 const GetClientInfoCallback& callback) const {
282 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 282 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
283 base::Bind(&GetClientInfoOnUIThread, 283 base::Bind(&GetClientInfoOnUIThread,
284 render_process_id_, 284 render_process_id_,
285 render_frame_id_, 285 render_frame_id_,
286 callback)); 286 callback));
287 } 287 }
288 288
289 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern( 289 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern(
290 const GURL& pattern) { 290 const GURL& pattern) {
291 associated_patterns_.push_back(pattern); 291 associated_patterns_.push_back(pattern);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 context_->process_manager()->RemoveProcessReferenceFromPattern( 424 context_->process_manager()->RemoveProcessReferenceFromPattern(
425 pattern, render_process_id_); 425 pattern, render_process_id_);
426 } 426 }
427 } 427 }
428 428
429 bool ServiceWorkerProviderHost::IsContextAlive() { 429 bool ServiceWorkerProviderHost::IsContextAlive() {
430 return context_ != NULL; 430 return context_ != NULL;
431 } 431 }
432 432
433 } // namespace content 433 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698