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

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: fix IPC Created 3 years, 4 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return process_manager_.get(); 96 return process_manager_.get();
97 } 97 }
98 98
99 // ServiceWorkerContextCoreObserver implementation: 99 // ServiceWorkerContextCoreObserver implementation:
100 void OnRegistrationStored(int64_t registration_id, 100 void OnRegistrationStored(int64_t registration_id,
101 const GURL& pattern) override; 101 const GURL& pattern) override;
102 102
103 // ServiceWorkerContext implementation: 103 // ServiceWorkerContext implementation:
104 void AddObserver(ServiceWorkerContextObserver* observer) override; 104 void AddObserver(ServiceWorkerContextObserver* observer) override;
105 void RemoveObserver(ServiceWorkerContextObserver* observer) override; 105 void RemoveObserver(ServiceWorkerContextObserver* observer) override;
106 void RegisterServiceWorker(const GURL& pattern, 106 void RegisterServiceWorker(
107 const GURL& script_url, 107 const GURL& pattern,
108 const ResultCallback& continuation) override; 108 const GURL& script_url,
109 blink::WebServiceWorkerUpdateViaCache update_via_cache,
110 const ResultCallback& continuation) override;
109 void UnregisterServiceWorker(const GURL& pattern, 111 void UnregisterServiceWorker(const GURL& pattern,
110 const ResultCallback& continuation) override; 112 const ResultCallback& continuation) override;
111 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; 113 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
112 void DeleteForOrigin(const GURL& origin, 114 void DeleteForOrigin(const GURL& origin,
113 const ResultCallback& callback) override; 115 const ResultCallback& callback) override;
114 void CheckHasServiceWorker( 116 void CheckHasServiceWorker(
115 const GURL& url, 117 const GURL& url,
116 const GURL& other_url, 118 const GURL& other_url,
117 const CheckHasServiceWorkerCallback& callback) override; 119 const CheckHasServiceWorkerCallback& callback) override;
118 void CountExternalRequestsForTest( 120 void CountExternalRequestsForTest(
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 353
352 // The ResourceContext associated with this context. 354 // The ResourceContext associated with this context.
353 ResourceContext* resource_context_; 355 ResourceContext* resource_context_;
354 356
355 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 357 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
356 }; 358 };
357 359
358 } // namespace content 360 } // namespace content
359 361
360 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 362 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698