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

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

Issue 625433002: Pages controlled by ServiceWorkers should not participate in AppCaching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 ServiceWorkerVersion* waiting_version() const { 68 ServiceWorkerVersion* waiting_version() const {
69 return associated_registration_.get() ? 69 return associated_registration_.get() ?
70 associated_registration_->waiting_version() : NULL; 70 associated_registration_->waiting_version() : NULL;
71 } 71 }
72 ServiceWorkerVersion* installing_version() const { 72 ServiceWorkerVersion* installing_version() const {
73 return associated_registration_.get() ? 73 return associated_registration_.get() ?
74 associated_registration_->installing_version() : NULL; 74 associated_registration_->installing_version() : NULL;
75 } 75 }
76 76
77 ServiceWorkerRegistration* associated_registration() const {
78 return associated_registration_.get();
79 }
80
77 // The running version, if any, that this provider is providing resource 81 // The running version, if any, that this provider is providing resource
78 // loads for. 82 // loads for.
79 ServiceWorkerVersion* running_hosted_version() const { 83 ServiceWorkerVersion* running_hosted_version() const {
80 return running_hosted_version_.get(); 84 return running_hosted_version_.get();
81 } 85 }
82 86
83 void SetDocumentUrl(const GURL& url); 87 void SetDocumentUrl(const GURL& url);
84 const GURL& document_url() const { return document_url_; } 88 const GURL& document_url() const { return document_url_; }
85 89
86 void SetTopmostFrameUrl(const GURL& url); 90 void SetTopmostFrameUrl(const GURL& url);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 base::WeakPtr<ServiceWorkerContextCore> context_; 168 base::WeakPtr<ServiceWorkerContextCore> context_;
165 ServiceWorkerDispatcherHost* dispatcher_host_; 169 ServiceWorkerDispatcherHost* dispatcher_host_;
166 bool allow_association_; 170 bool allow_association_;
167 171
168 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 172 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
169 }; 173 };
170 174
171 } // namespace content 175 } // namespace content
172 176
173 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 177 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698