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

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

Issue 2969463003: Move resource_request.h to content/public/common. (Closed)
Patch Set: Merge Created 3 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_registration_handle.h" 5 #include "content/browser/service_worker/service_worker_registration_handle.h"
6 6
7 #include "content/browser/service_worker/service_worker_context_core.h" 7 #include "content/browser/service_worker/service_worker_context_core.h"
8 #include "content/browser/service_worker/service_worker_handle.h" 8 #include "content/browser/service_worker/service_worker_handle.h"
9 #include "content/common/service_worker/service_worker_messages.h" 9 #include "content/common/service_worker/service_worker_messages.h"
10 #include "content/common/service_worker/service_worker_types.h" 10 #include "content/common/service_worker/service_worker_types.h"
11 #include "content/public/common/service_worker_modes.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 ServiceWorkerRegistrationHandle::ServiceWorkerRegistrationHandle( 15 ServiceWorkerRegistrationHandle::ServiceWorkerRegistrationHandle(
15 base::WeakPtr<ServiceWorkerContextCore> context, 16 base::WeakPtr<ServiceWorkerContextCore> context,
16 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 17 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
17 ServiceWorkerRegistration* registration) 18 ServiceWorkerRegistration* registration)
18 : context_(context), 19 : context_(context),
19 provider_host_(provider_host), 20 provider_host_(provider_host),
20 provider_id_(provider_host ? provider_host->provider_id() 21 provider_id_(provider_host ? provider_host->provider_id()
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (!provider_host_) 99 if (!provider_host_)
99 return; // Could be nullptr in some tests. 100 return; // Could be nullptr in some tests.
100 provider_host_->SendSetVersionAttributesMessage(handle_id_, 101 provider_host_->SendSetVersionAttributesMessage(handle_id_,
101 changed_mask, 102 changed_mask,
102 installing_version, 103 installing_version,
103 waiting_version, 104 waiting_version,
104 active_version); 105 active_version);
105 } 106 }
106 107
107 } // namespace content 108 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698