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

Side by Side Diff: content/browser/devtools/service_worker_devtools_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 using WorkerId = std::pair<int, int>; 29 using WorkerId = std::pair<int, int>;
30 using AgentList = std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>; 30 using AgentList = std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>;
31 31
32 class Observer { 32 class Observer {
33 public: 33 public:
34 virtual void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) {} 34 virtual void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) {}
35 virtual void WorkerReadyForInspection( 35 virtual void WorkerReadyForInspection(
36 ServiceWorkerDevToolsAgentHost* host) {} 36 ServiceWorkerDevToolsAgentHost* host) {}
37 virtual void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) {} 37 virtual void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) {}
38 virtual void DebugOnStartUpdated(bool debug_on_start) {}
39 38
40 protected: 39 protected:
41 virtual ~Observer() {} 40 virtual ~Observer() {}
42 }; 41 };
43 42
44 class ServiceWorkerIdentifier { 43 class ServiceWorkerIdentifier {
45 public: 44 public:
46 ServiceWorkerIdentifier( 45 ServiceWorkerIdentifier(
47 const ServiceWorkerContextCore* context, 46 const ServiceWorkerContextCore* context,
48 base::WeakPtr<ServiceWorkerContextCore> context_weak, 47 base::WeakPtr<ServiceWorkerContextCore> context_weak,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 base::ObserverList<Observer> observer_list_; 117 base::ObserverList<Observer> observer_list_;
119 AgentHostMap workers_; 118 AgentHostMap workers_;
120 bool debug_service_worker_on_start_; 119 bool debug_service_worker_on_start_;
121 120
122 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsManager); 121 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsManager);
123 }; 122 };
124 123
125 } // namespace content 124 } // namespace content
126 125
127 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 126 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698