Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 class DictionaryValue; | 21 class DictionaryValue; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace internal { | 24 namespace internal { |
| 25 | 25 |
| 26 enum InspectorMessageType { | 26 enum InspectorMessageType { |
| 27 kEventMessageType = 0, | 27 kEventMessageType = 0, |
| 28 kCommandResponseMessageType | 28 kCommandResponseMessageType |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 enum InspectorErrorCode { | |
| 32 kContextIdNotFound = -32000, | |
|
kkania
2013/02/06 01:41:25
-32000 just means generic server error. devtools
craigdh
2013/02/06 18:52:49
Ah, that's unfortunate. I think for now the best c
| |
| 33 }; | |
| 34 | |
| 31 struct InspectorEvent { | 35 struct InspectorEvent { |
| 32 InspectorEvent(); | 36 InspectorEvent(); |
| 33 ~InspectorEvent(); | 37 ~InspectorEvent(); |
| 34 std::string method; | 38 std::string method; |
| 35 scoped_ptr<base::DictionaryValue> params; | 39 scoped_ptr<base::DictionaryValue> params; |
| 36 }; | 40 }; |
| 37 | 41 |
| 38 struct InspectorCommandResponse { | 42 struct InspectorCommandResponse { |
| 39 InspectorCommandResponse(); | 43 InspectorCommandResponse(); |
| 40 ~InspectorCommandResponse(); | 44 ~InspectorCommandResponse(); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 bool ParseInspectorMessage( | 115 bool ParseInspectorMessage( |
| 112 const std::string& message, | 116 const std::string& message, |
| 113 int expected_id, | 117 int expected_id, |
| 114 InspectorMessageType* type, | 118 InspectorMessageType* type, |
| 115 InspectorEvent* event, | 119 InspectorEvent* event, |
| 116 InspectorCommandResponse* command_response); | 120 InspectorCommandResponse* command_response); |
| 117 | 121 |
| 118 } // namespace internal | 122 } // namespace internal |
| 119 | 123 |
| 120 #endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ | 124 #endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_ |
| OLD | NEW |