OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 5 #ifndef HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 namespace service_worker { | 96 namespace service_worker { |
97 class Domain; | 97 class Domain; |
98 } | 98 } |
99 namespace target { | 99 namespace target { |
100 class Domain; | 100 class Domain; |
101 } | 101 } |
102 namespace tracing { | 102 namespace tracing { |
103 class Domain; | 103 class Domain; |
104 } | 104 } |
105 namespace worker { | |
106 class Domain; | |
107 } | |
108 | 105 |
109 // An interface for controlling and receiving events from a devtools target. | 106 // An interface for controlling and receiving events from a devtools target. |
110 class HEADLESS_EXPORT HeadlessDevToolsClient { | 107 class HEADLESS_EXPORT HeadlessDevToolsClient { |
111 public: | 108 public: |
112 virtual ~HeadlessDevToolsClient() {} | 109 virtual ~HeadlessDevToolsClient() {} |
113 | 110 |
114 static std::unique_ptr<HeadlessDevToolsClient> Create(); | 111 static std::unique_ptr<HeadlessDevToolsClient> Create(); |
115 | 112 |
116 // DevTools commands are split into domains which corresponds to the getters | 113 // DevTools commands are split into domains which corresponds to the getters |
117 // below. Each domain can be used to send commands and to subscribe to events. | 114 // below. Each domain can be used to send commands and to subscribe to events. |
(...skipping 23 matching lines...) Expand all Loading... |
141 virtual memory::Domain* GetMemory() = 0; | 138 virtual memory::Domain* GetMemory() = 0; |
142 virtual network::Domain* GetNetwork() = 0; | 139 virtual network::Domain* GetNetwork() = 0; |
143 virtual page::Domain* GetPage() = 0; | 140 virtual page::Domain* GetPage() = 0; |
144 virtual profiler::Domain* GetProfiler() = 0; | 141 virtual profiler::Domain* GetProfiler() = 0; |
145 virtual rendering::Domain* GetRendering() = 0; | 142 virtual rendering::Domain* GetRendering() = 0; |
146 virtual runtime::Domain* GetRuntime() = 0; | 143 virtual runtime::Domain* GetRuntime() = 0; |
147 virtual security::Domain* GetSecurity() = 0; | 144 virtual security::Domain* GetSecurity() = 0; |
148 virtual service_worker::Domain* GetServiceWorker() = 0; | 145 virtual service_worker::Domain* GetServiceWorker() = 0; |
149 virtual target::Domain* GetTarget() = 0; | 146 virtual target::Domain* GetTarget() = 0; |
150 virtual tracing::Domain* GetTracing() = 0; | 147 virtual tracing::Domain* GetTracing() = 0; |
151 virtual worker::Domain* GetWorker() = 0; | |
152 | 148 |
153 // TODO(skyostil): Add notification for disconnection. | 149 // TODO(skyostil): Add notification for disconnection. |
154 | 150 |
155 private: | 151 private: |
156 friend class HeadlessDevToolsClientImpl; | 152 friend class HeadlessDevToolsClientImpl; |
157 | 153 |
158 HeadlessDevToolsClient() {} | 154 HeadlessDevToolsClient() {} |
159 | 155 |
160 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); | 156 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); |
161 }; | 157 }; |
162 | 158 |
163 } // namespace headless | 159 } // namespace headless |
164 | 160 |
165 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 161 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |