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

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

Issue 1841863003: DevTools: move the force update SW on reload checkbox to the Resources / Service Workers view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixed Created 4 years, 8 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 <string> 10 #include <string>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void GetUserDataForAllRegistrations( 167 void GetUserDataForAllRegistrations(
168 const std::string& key, 168 const std::string& key,
169 const GetUserDataForAllRegistrationsCallback& callback); 169 const GetUserDataForAllRegistrationsCallback& callback);
170 170
171 // This function can be called from any thread, but the callback will always 171 // This function can be called from any thread, but the callback will always
172 // be called on the UI thread. 172 // be called on the UI thread.
173 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback); 173 void StartServiceWorker(const GURL& pattern, const StatusCallback& callback);
174 174
175 // These methods can be called from any thread. 175 // These methods can be called from any thread.
176 void UpdateRegistration(const GURL& pattern); 176 void UpdateRegistration(const GURL& pattern);
177 void SetForceUpdateOnPageLoad(int64_t registration_id, 177 void SetForceUpdateOnPageLoad(bool force_update_on_page_load);
178 bool force_update_on_page_load);
179 void AddObserver(ServiceWorkerContextObserver* observer); 178 void AddObserver(ServiceWorkerContextObserver* observer);
180 void RemoveObserver(ServiceWorkerContextObserver* observer); 179 void RemoveObserver(ServiceWorkerContextObserver* observer);
181 180
182 bool is_incognito() const { return is_incognito_; } 181 bool is_incognito() const { return is_incognito_; }
183 182
184 // Must be called from the IO thread. 183 // Must be called from the IO thread.
185 bool OriginHasForeignFetchRegistrations(const GURL& origin); 184 bool OriginHasForeignFetchRegistrations(const GURL& origin);
186 185
187 private: 186 private:
188 friend class BackgroundSyncManagerTest; 187 friend class BackgroundSyncManagerTest;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 ResourceContext* resource_context_; 249 ResourceContext* resource_context_;
251 250
252 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 251 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
253 252
254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 253 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
255 }; 254 };
256 255
257 } // namespace content 256 } // namespace content
258 257
259 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 258 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698