| 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 std::string GetType() override; | 35 Type 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; | |
| 40 bool Close() override; | 39 bool Close() override; |
| 41 | 40 |
| 42 // WorkerDevToolsAgentHost overrides. | 41 // WorkerDevToolsAgentHost overrides. |
| 43 void OnAttachedStateChanged(bool attached) override; | 42 void OnAttachedStateChanged(bool attached) override; |
| 44 | 43 |
| 45 void WorkerVersionInstalled(); | 44 void WorkerVersionInstalled(); |
| 46 void WorkerVersionDoomed(); | 45 void WorkerVersionDoomed(); |
| 47 | 46 |
| 48 int64_t service_worker_version_id() const; | 47 int64_t service_worker_version_id() const; |
| 49 GURL scope() const; | 48 GURL scope() const; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 64 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; | 63 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; |
| 65 base::Time version_installed_time_; | 64 base::Time version_installed_time_; |
| 66 base::Time version_doomed_time_; | 65 base::Time version_doomed_time_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); | 67 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace content | 70 } // namespace content |
| 72 | 71 |
| 73 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ | 72 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |