| 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 std::unique_ptr<base::DictionaryValue> params); | 34 std::unique_ptr<base::DictionaryValue> params); |
| 35 | 35 |
| 36 static std::unique_ptr<base::DictionaryValue> CreateSuccessResponse( | 36 static std::unique_ptr<base::DictionaryValue> CreateSuccessResponse( |
| 37 int command_id, | 37 int command_id, |
| 38 std::unique_ptr<base::DictionaryValue> result); | 38 std::unique_ptr<base::DictionaryValue> result); |
| 39 | 39 |
| 40 static std::unique_ptr<base::DictionaryValue> CreateInvalidParamsResponse( | 40 static std::unique_ptr<base::DictionaryValue> CreateInvalidParamsResponse( |
| 41 int command_id, | 41 int command_id, |
| 42 const std::string& param); | 42 const std::string& param); |
| 43 | 43 |
| 44 static std::unique_ptr<base::DictionaryValue> CreateErrorResponse( |
| 45 int command_id, |
| 46 const std::string& error_message); |
| 47 |
| 44 private: | 48 private: |
| 45 DevToolsProtocol() {} | 49 DevToolsProtocol() {} |
| 46 ~DevToolsProtocol() {} | 50 ~DevToolsProtocol() {} |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 53 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
| OLD | NEW |