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

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

Issue 1102263002: Add skipWaiting checkbox to ServiceWorkersView in DevTools [1/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 // Sets the status code to pass to StartWorker callbacks if start fails. 289 // Sets the status code to pass to StartWorker callbacks if start fails.
290 void SetStartWorkerStatusCode(ServiceWorkerStatusCode status); 290 void SetStartWorkerStatusCode(ServiceWorkerStatusCode status);
291 291
292 // Sets this version's status to REDUNDANT and deletes its resources. 292 // Sets this version's status to REDUNDANT and deletes its resources.
293 // The version must not have controllees. 293 // The version must not have controllees.
294 void Doom(); 294 void Doom();
295 bool is_redundant() const { return status_ == REDUNDANT; } 295 bool is_redundant() const { return status_ == REDUNDANT; }
296 296
297 bool skip_waiting() const { return skip_waiting_; } 297 bool skip_waiting() const { return skip_waiting_; }
298 void set_skip_waiting(bool skip_waiting) { skip_waiting_ = skip_waiting; }
298 299
299 bool force_bypass_cache_for_scripts() { 300 bool force_bypass_cache_for_scripts() {
300 return force_bypass_cache_for_scripts_; 301 return force_bypass_cache_for_scripts_;
301 } 302 }
302 void set_force_bypass_cache_for_scripts(bool force_bypass_cache_for_scripts) { 303 void set_force_bypass_cache_for_scripts(bool force_bypass_cache_for_scripts) {
303 force_bypass_cache_for_scripts_ = force_bypass_cache_for_scripts; 304 force_bypass_cache_for_scripts_ = force_bypass_cache_for_scripts;
304 } 305 }
305 306
306 void SetDevToolsAttached(bool attached); 307 void SetDevToolsAttached(bool attached);
307 308
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 ServiceWorkerStatusCode start_worker_status_ = SERVICE_WORKER_OK; 554 ServiceWorkerStatusCode start_worker_status_ = SERVICE_WORKER_OK;
554 555
555 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 556 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
556 557
557 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 558 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
558 }; 559 };
559 560
560 } // namespace content 561 } // namespace content
561 562
562 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 563 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698