OLD | NEW |
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_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 14 matching lines...) Expand all Loading... |
25 using ServiceWorkerIdentifier = | 25 using ServiceWorkerIdentifier = |
26 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier; | 26 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier; |
27 | 27 |
28 ServiceWorkerDevToolsAgentHost(WorkerId worker_id, | 28 ServiceWorkerDevToolsAgentHost(WorkerId worker_id, |
29 const ServiceWorkerIdentifier& service_worker, | 29 const ServiceWorkerIdentifier& service_worker, |
30 bool is_installed_version); | 30 bool is_installed_version); |
31 | 31 |
32 void UnregisterWorker(); | 32 void UnregisterWorker(); |
33 | 33 |
34 // DevToolsAgentHost overrides. | 34 // DevToolsAgentHost overrides. |
35 Type GetType() override; | 35 std::string GetType() override; |
36 std::string GetTitle() override; | 36 std::string GetTitle() override; |
37 GURL GetURL() override; | 37 GURL GetURL() override; |
38 bool Activate() override; | 38 bool Activate() override; |
| 39 void Reload() override; |
39 bool Close() override; | 40 bool Close() override; |
40 | 41 |
41 // WorkerDevToolsAgentHost overrides. | 42 // WorkerDevToolsAgentHost overrides. |
42 void OnAttachedStateChanged(bool attached) override; | 43 void OnAttachedStateChanged(bool attached) override; |
43 | 44 |
44 void WorkerVersionInstalled(); | 45 void WorkerVersionInstalled(); |
45 void WorkerVersionDoomed(); | 46 void WorkerVersionDoomed(); |
46 | 47 |
47 int64_t service_worker_version_id() const; | 48 int64_t service_worker_version_id() const; |
48 GURL scope() const; | 49 GURL scope() const; |
(...skipping 14 matching lines...) Expand all Loading... |
63 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; | 64 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; |
64 base::Time version_installed_time_; | 65 base::Time version_installed_time_; |
65 base::Time version_doomed_time_; | 66 base::Time version_doomed_time_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); | 68 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
71 | 72 |
72 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ | 73 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |