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 28 matching lines...) Expand all Loading... |
39 // WorkerDevToolsAgentHost overrides. | 39 // WorkerDevToolsAgentHost overrides. |
40 void OnAttachedStateChanged(bool attached) override; | 40 void OnAttachedStateChanged(bool attached) override; |
41 | 41 |
42 int64_t service_worker_version_id() const; | 42 int64_t service_worker_version_id() const; |
43 GURL scope() const; | 43 GURL scope() const; |
44 | 44 |
45 bool Matches(const ServiceWorkerIdentifier& other); | 45 bool Matches(const ServiceWorkerIdentifier& other); |
46 | 46 |
47 private: | 47 private: |
48 ~ServiceWorkerDevToolsAgentHost() override; | 48 ~ServiceWorkerDevToolsAgentHost() override; |
49 scoped_ptr<ServiceWorkerIdentifier> service_worker_; | 49 std::unique_ptr<ServiceWorkerIdentifier> service_worker_; |
50 scoped_ptr<devtools::network::NetworkHandler> network_handler_; | 50 std::unique_ptr<devtools::network::NetworkHandler> network_handler_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); | 52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace content | 55 } // namespace content |
56 | 56 |
57 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ | 57 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |