OLD | NEW |
---|---|
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/message_port_message_filter.h" | 8 #include "content/browser/message_port_message_filter.h" |
9 #include "content/browser/service_worker/service_worker_context_core.h" | 9 #include "content/browser/service_worker/service_worker_context_core.h" |
10 #include "content/browser/service_worker/service_worker_context_request_handler. h" | 10 #include "content/browser/service_worker/service_worker_context_request_handler. h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) { | 237 void ServiceWorkerProviderHost::Focus(const FocusCallback& callback) { |
238 BrowserThread::PostTask( | 238 BrowserThread::PostTask( |
239 BrowserThread::UI, FROM_HERE, | 239 BrowserThread::UI, FROM_HERE, |
240 base::Bind(&FocusOnUIThread, | 240 base::Bind(&FocusOnUIThread, |
241 render_process_id_, | 241 render_process_id_, |
242 render_frame_id_, | 242 render_frame_id_, |
243 callback)); | 243 callback)); |
244 } | 244 } |
245 | 245 |
246 void ServiceWorkerProviderHost::GetClientInfo( | 246 void ServiceWorkerProviderHost::GetClientInfo( |
247 int embedded_worker_id, | 247 int embedded_worker_id, |
michaeln
2015/01/17 00:25:32
why is this first param here?
mlamouri (slow - plz ping)
2015/01/26 13:19:08
No longer apply with the rebase.
| |
248 int request_id) { | 248 int request_id) const { |
249 dispatcher_host_->Send(new ServiceWorkerMsg_GetClientInfo( | 249 dispatcher_host_->Send(new ServiceWorkerMsg_GetClientInfo( |
250 kDocumentMainThreadId, embedded_worker_id, request_id, provider_id())); | 250 kDocumentMainThreadId, embedded_worker_id, request_id, provider_id())); |
251 } | 251 } |
252 | 252 |
253 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern( | 253 void ServiceWorkerProviderHost::AddScopedProcessReferenceToPattern( |
254 const GURL& pattern) { | 254 const GURL& pattern) { |
255 associated_patterns_.push_back(pattern); | 255 associated_patterns_.push_back(pattern); |
256 IncreaseProcessReference(pattern); | 256 IncreaseProcessReference(pattern); |
257 } | 257 } |
258 | 258 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 context_->process_manager()->RemoveProcessReferenceFromPattern( | 339 context_->process_manager()->RemoveProcessReferenceFromPattern( |
340 pattern, render_process_id_); | 340 pattern, render_process_id_); |
341 } | 341 } |
342 } | 342 } |
343 | 343 |
344 bool ServiceWorkerProviderHost::IsContextAlive() { | 344 bool ServiceWorkerProviderHost::IsContextAlive() { |
345 return context_ != NULL; | 345 return context_ != NULL; |
346 } | 346 } |
347 | 347 |
348 } // namespace content | 348 } // namespace content |
OLD | NEW |