OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DEVTOOLS_PROTOCOL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(Response); | 107 DISALLOW_COPY_AND_ASSIGN(Response); |
108 }; | 108 }; |
109 | 109 |
110 class Notification : public Message { | 110 class Notification : public Message { |
111 public: | 111 public: |
112 std::string Serialize() override; | 112 std::string Serialize() override; |
113 | 113 |
114 private: | 114 private: |
115 friend class DevToolsProtocol; | 115 friend class DevToolsProtocol; |
| 116 friend class DevToolsProtocolClient; |
116 ~Notification() override; | 117 ~Notification() override; |
117 | 118 |
118 // Takes ownership of |params|. | 119 // Takes ownership of |params|. |
119 Notification(const std::string& method, | 120 Notification(const std::string& method, |
120 base::DictionaryValue* params); | 121 base::DictionaryValue* params); |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(Notification); | 123 DISALLOW_COPY_AND_ASSIGN(Notification); |
123 }; | 124 }; |
124 | 125 |
125 class CONTENT_EXPORT Handler { | 126 class CONTENT_EXPORT Handler { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 static scoped_refptr<Notification> CreateNotification( | 186 static scoped_refptr<Notification> CreateNotification( |
186 const std::string& method, base::DictionaryValue* params); | 187 const std::string& method, base::DictionaryValue* params); |
187 | 188 |
188 DevToolsProtocol() {} | 189 DevToolsProtocol() {} |
189 ~DevToolsProtocol() {} | 190 ~DevToolsProtocol() {} |
190 }; | 191 }; |
191 | 192 |
192 } // namespace content | 193 } // namespace content |
193 | 194 |
194 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 195 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
OLD | NEW |