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

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

Issue 1872673002: DevTools: introduce the bypass service worker checkbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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(bool force_update_on_page_load); 177 void SetUpdateOnPageLoadForDevTools(bool update_on_page_load);
178 void SetFallbackToNetworkForDevTools(bool fallback_to_network);
178 void AddObserver(ServiceWorkerContextObserver* observer); 179 void AddObserver(ServiceWorkerContextObserver* observer);
179 void RemoveObserver(ServiceWorkerContextObserver* observer); 180 void RemoveObserver(ServiceWorkerContextObserver* observer);
180 181
181 bool is_incognito() const { return is_incognito_; } 182 bool is_incognito() const { return is_incognito_; }
182 183
183 // Must be called from the IO thread. 184 // Must be called from the IO thread.
184 bool OriginHasForeignFetchRegistrations(const GURL& origin); 185 bool OriginHasForeignFetchRegistrations(const GURL& origin);
185 186
186 private: 187 private:
187 friend class BackgroundSyncManagerTest; 188 friend class BackgroundSyncManagerTest;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ResourceContext* resource_context_; 250 ResourceContext* resource_context_;
250 251
251 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 252 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
252 253
253 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 254 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
254 }; 255 };
255 256
256 } // namespace content 257 } // namespace content
257 258
258 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 259 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698