| 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 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" | 5 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" | 13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
| 14 #include "chrome/test/chromedriver/chrome/log.h" | 14 #include "chrome/test/chromedriver/chrome/log.h" |
| 15 #include "chrome/test/chromedriver/chrome/status.h" | 15 #include "chrome/test/chromedriver/chrome/status.h" |
| 16 #include "chrome/test/chromedriver/net/sync_websocket.h" | 16 #include "chrome/test/chromedriver/net/sync_websocket.h" |
| 17 #include "chrome/test/chromedriver/net/url_request_context_getter.h" | 17 #include "chrome/test/chromedriver/net/url_request_context_getter.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const char* kInspectorContextError = | 21 const char* kInspectorContextError = |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 if (unscoped_result) | 440 if (unscoped_result) |
| 441 command_response->result.reset(unscoped_result->DeepCopy()); | 441 command_response->result.reset(unscoped_result->DeepCopy()); |
| 442 else | 442 else |
| 443 base::JSONWriter::Write(unscoped_error, &command_response->error); | 443 base::JSONWriter::Write(unscoped_error, &command_response->error); |
| 444 return true; | 444 return true; |
| 445 } | 445 } |
| 446 return false; | 446 return false; |
| 447 } | 447 } |
| 448 | 448 |
| 449 } // namespace internal | 449 } // namespace internal |
| OLD | NEW |