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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: change useCache to updateViaCache Created 3 years, 6 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_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return process_manager_.get(); 90 return process_manager_.get();
91 } 91 }
92 92
93 // ServiceWorkerContextCoreObserver implementation: 93 // ServiceWorkerContextCoreObserver implementation:
94 void OnRegistrationStored(int64_t registration_id, 94 void OnRegistrationStored(int64_t registration_id,
95 const GURL& pattern) override; 95 const GURL& pattern) override;
96 96
97 // ServiceWorkerContext implementation: 97 // ServiceWorkerContext implementation:
98 void AddObserver(ServiceWorkerContextObserver* observer) override; 98 void AddObserver(ServiceWorkerContextObserver* observer) override;
99 void RemoveObserver(ServiceWorkerContextObserver* observer) override; 99 void RemoveObserver(ServiceWorkerContextObserver* observer) override;
100 void RegisterServiceWorker(const GURL& pattern, 100 void RegisterServiceWorker(
101 const GURL& script_url, 101 const GURL& pattern,
102 const ResultCallback& continuation) override; 102 const GURL& script_url,
103 blink::WebServiceWorkerUpdateViaCache update_via_cache,
104 const ResultCallback& continuation) override;
103 void UnregisterServiceWorker(const GURL& pattern, 105 void UnregisterServiceWorker(const GURL& pattern,
104 const ResultCallback& continuation) override; 106 const ResultCallback& continuation) override;
105 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; 107 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
106 void DeleteForOrigin(const GURL& origin, 108 void DeleteForOrigin(const GURL& origin,
107 const ResultCallback& callback) override; 109 const ResultCallback& callback) override;
108 void CheckHasServiceWorker( 110 void CheckHasServiceWorker(
109 const GURL& url, 111 const GURL& url,
110 const GURL& other_url, 112 const GURL& other_url,
111 const CheckHasServiceWorkerCallback& callback) override; 113 const CheckHasServiceWorkerCallback& callback) override;
112 void CountExternalRequestsForTest( 114 void CountExternalRequestsForTest(
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 333
332 // The ResourceContext associated with this context. 334 // The ResourceContext associated with this context.
333 ResourceContext* resource_context_; 335 ResourceContext* resource_context_;
334 336
335 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 337 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
336 }; 338 };
337 339
338 } // namespace content 340 } // namespace content
339 341
340 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 342 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698