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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 | 12 |
14 // Utility class for processing DevTools remote debugging messages. | 13 // Utility class for processing DevTools remote debugging messages. |
15 class DevToolsProtocol { | 14 class DevToolsProtocol { |
16 public: | 15 public: |
17 // Caller maintains ownership of |command|. |*params| is owned by |command|. | 16 // Caller maintains ownership of |command|. |*params| is owned by |command|. |
18 static bool ParseCommand(base::DictionaryValue* command, | 17 static bool ParseCommand(base::DictionaryValue* command, |
19 int* command_id, | 18 int* command_id, |
20 std::string* method, | 19 std::string* method, |
(...skipping 18 matching lines...) Expand all Loading... |
39 static scoped_ptr<base::DictionaryValue> CreateInvalidParamsResponse( | 38 static scoped_ptr<base::DictionaryValue> CreateInvalidParamsResponse( |
40 int command_id, | 39 int command_id, |
41 const std::string& param); | 40 const std::string& param); |
42 | 41 |
43 private: | 42 private: |
44 DevToolsProtocol() {} | 43 DevToolsProtocol() {} |
45 ~DevToolsProtocol() {} | 44 ~DevToolsProtocol() {} |
46 }; | 45 }; |
47 | 46 |
48 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ | 47 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ |
OLD | NEW |