| 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 COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 5 #ifndef COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
| 6 #define COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 6 #define COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/ui_devtools/DOM.h" | 10 #include "components/ui_devtools/DOM.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void Dispatch(const std::string& data); | 33 void Dispatch(const std::string& data); |
| 34 | 34 |
| 35 bool connected() const; | 35 bool connected() const; |
| 36 void set_connection_id(int connection_id); | 36 void set_connection_id(int connection_id); |
| 37 const std::string& name() const; | 37 const std::string& name() const; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void DisableAllAgents(); | 40 void DisableAllAgents(); |
| 41 | 41 |
| 42 // protocol::FrontendChannel | 42 // protocol::FrontendChannel |
| 43 void sendProtocolResponse(int callId, const String& message) override; | 43 void sendProtocolResponse( |
| 44 void sendProtocolNotification(const String& message) override; | 44 int callId, |
| 45 std::unique_ptr<protocol::Serializable> message) override; |
| 46 void sendProtocolNotification( |
| 47 std::unique_ptr<protocol::Serializable> message) override; |
| 45 void flushProtocolNotifications() override; | 48 void flushProtocolNotifications() override; |
| 46 | 49 |
| 47 std::string name_; | 50 std::string name_; |
| 48 int connection_id_; | 51 int connection_id_; |
| 49 | 52 |
| 50 std::vector<std::unique_ptr<UiDevToolsAgent>> agents_; | 53 std::vector<std::unique_ptr<UiDevToolsAgent>> agents_; |
| 51 protocol::UberDispatcher dispatcher_; | 54 protocol::UberDispatcher dispatcher_; |
| 52 UiDevToolsServer* server_; | 55 UiDevToolsServer* server_; |
| 53 | 56 |
| 54 DISALLOW_COPY_AND_ASSIGN(UiDevToolsClient); | 57 DISALLOW_COPY_AND_ASSIGN(UiDevToolsClient); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace devtools | 60 } // namespace devtools |
| 58 } // namespace ui | 61 } // namespace ui |
| 59 | 62 |
| 60 #endif // COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 63 #endif // COMPONENTS_UI_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
| OLD | NEW |