| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 static Command* ParseCommand(const std::string& json, | 145 static Command* ParseCommand(const std::string& json, |
| 146 std::string* error_response); | 146 std::string* error_response); |
| 147 | 147 |
| 148 static Notification* ParseNotification(const std::string& json); | 148 static Notification* ParseNotification(const std::string& json); |
| 149 | 149 |
| 150 static Notification* CreateNotification(const std::string& method, | 150 static Notification* CreateNotification(const std::string& method, |
| 151 base::DictionaryValue* params); | 151 base::DictionaryValue* params); |
| 152 | 152 |
| 153 private: | 153 private: |
| 154 static DictionaryValue* ParseMessage(const std::string& json, | 154 static base::DictionaryValue* ParseMessage(const std::string& json, |
| 155 std::string* error_response); | 155 std::string* error_response); |
| 156 | 156 |
| 157 DevToolsProtocol() {} | 157 DevToolsProtocol() {} |
| 158 ~DevToolsProtocol() {} | 158 ~DevToolsProtocol() {} |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace content | 161 } // namespace content |
| 162 | 162 |
| 163 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 163 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
| OLD | NEW |