Chromium Code Reviews| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 virtual network::Domain* GetNetwork() = 0; | 139 virtual network::Domain* GetNetwork() = 0; |
| 140 virtual page::Domain* GetPage() = 0; | 140 virtual page::Domain* GetPage() = 0; |
| 141 virtual profiler::Domain* GetProfiler() = 0; | 141 virtual profiler::Domain* GetProfiler() = 0; |
| 142 virtual rendering::Domain* GetRendering() = 0; | 142 virtual rendering::Domain* GetRendering() = 0; |
| 143 virtual runtime::Domain* GetRuntime() = 0; | 143 virtual runtime::Domain* GetRuntime() = 0; |
| 144 virtual security::Domain* GetSecurity() = 0; | 144 virtual security::Domain* GetSecurity() = 0; |
| 145 virtual service_worker::Domain* GetServiceWorker() = 0; | 145 virtual service_worker::Domain* GetServiceWorker() = 0; |
| 146 virtual target::Domain* GetTarget() = 0; | 146 virtual target::Domain* GetTarget() = 0; |
| 147 virtual tracing::Domain* GetTracing() = 0; | 147 virtual tracing::Domain* GetTracing() = 0; |
| 148 | 148 |
| 149 class HEADLESS_EXPORT RawProtocolListener { | |
| 150 public: | |
| 151 RawProtocolListener() {} | |
| 152 virtual ~RawProtocolListener() {} | |
| 153 | |
| 154 virtual void OnProtocolMessage( | |
|
Sami
2017/04/12 14:54:24
This feels a little asymmetric since you send a st
alex clarke (OOO till 29th)
2017/04/13 10:46:28
As discussed offline we added void SendRawDevTools
| |
| 155 const std::string& json_message, | |
| 156 const base::DictionaryValue* parsed_message) = 0; | |
| 157 | |
| 158 private: | |
| 159 DISALLOW_COPY_AND_ASSIGN(RawProtocolListener); | |
| 160 }; | |
| 161 | |
| 162 virtual void SetRawProtocolListener( | |
| 163 RawProtocolListener* raw_protocol_listener) = 0; | |
| 164 | |
| 165 // The id within the |json_message| must be odd to prevent collisions. | |
| 166 virtual void SendRawDevtoolsMessage(const std::string& json_message) = 0; | |
|
Sami
2017/04/12 14:54:24
s/Devtools/DevTools/
alex clarke (OOO till 29th)
2017/04/13 10:46:28
Done.
| |
| 167 | |
| 149 // TODO(skyostil): Add notification for disconnection. | 168 // TODO(skyostil): Add notification for disconnection. |
| 150 | 169 |
| 151 private: | 170 private: |
| 152 friend class HeadlessDevToolsClientImpl; | 171 friend class HeadlessDevToolsClientImpl; |
| 153 | 172 |
| 154 HeadlessDevToolsClient() {} | 173 HeadlessDevToolsClient() {} |
| 155 | 174 |
| 156 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); | 175 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); |
| 157 }; | 176 }; |
| 158 | 177 |
| 159 } // namespace headless | 178 } // namespace headless |
| 160 | 179 |
| 161 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 180 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
| OLD | NEW |