| 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 #include "chrome/test/chromedriver/session_commands.h" | 5 #include "chrome/test/chromedriver/session_commands.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/logging.h" // For CHECK macros. | 12 #include "base/logging.h" // For CHECK macros. |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/test/chromedriver/basic_types.h" | 18 #include "chrome/test/chromedriver/basic_types.h" |
| 19 #include "chrome/test/chromedriver/capabilities.h" | 19 #include "chrome/test/chromedriver/capabilities.h" |
| 20 #include "chrome/test/chromedriver/chrome/automation_extension.h" | 20 #include "chrome/test/chromedriver/chrome/automation_extension.h" |
| 21 #include "chrome/test/chromedriver/chrome/browser_info.h" |
| 21 #include "chrome/test/chromedriver/chrome/chrome.h" | 22 #include "chrome/test/chromedriver/chrome/chrome.h" |
| 22 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" | 23 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" |
| 23 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" | 24 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" |
| 24 #include "chrome/test/chromedriver/chrome/device_manager.h" | 25 #include "chrome/test/chromedriver/chrome/device_manager.h" |
| 25 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" | 26 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
| 26 #include "chrome/test/chromedriver/chrome/geoposition.h" | 27 #include "chrome/test/chromedriver/chrome/geoposition.h" |
| 27 #include "chrome/test/chromedriver/chrome/status.h" | 28 #include "chrome/test/chromedriver/chrome/status.h" |
| 28 #include "chrome/test/chromedriver/chrome/version.h" | |
| 29 #include "chrome/test/chromedriver/chrome/web_view.h" | 29 #include "chrome/test/chromedriver/chrome/web_view.h" |
| 30 #include "chrome/test/chromedriver/chrome_launcher.h" | 30 #include "chrome/test/chromedriver/chrome_launcher.h" |
| 31 #include "chrome/test/chromedriver/command_listener.h" | 31 #include "chrome/test/chromedriver/command_listener.h" |
| 32 #include "chrome/test/chromedriver/logging.h" | 32 #include "chrome/test/chromedriver/logging.h" |
| 33 #include "chrome/test/chromedriver/net/url_request_context_getter.h" | 33 #include "chrome/test/chromedriver/net/url_request_context_getter.h" |
| 34 #include "chrome/test/chromedriver/session.h" | 34 #include "chrome/test/chromedriver/session.h" |
| 35 #include "chrome/test/chromedriver/util.h" | 35 #include "chrome/test/chromedriver/util.h" |
| 36 #include "chrome/test/chromedriver/version.h" | 36 #include "chrome/test/chromedriver/version.h" |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 Status ExecuteSetAutoReporting( | 655 Status ExecuteSetAutoReporting( |
| 656 Session* session, | 656 Session* session, |
| 657 const base::DictionaryValue& params, | 657 const base::DictionaryValue& params, |
| 658 scoped_ptr<base::Value>* value) { | 658 scoped_ptr<base::Value>* value) { |
| 659 bool enabled; | 659 bool enabled; |
| 660 if (!params.GetBoolean("enabled", &enabled)) | 660 if (!params.GetBoolean("enabled", &enabled)) |
| 661 return Status(kUnknownError, "missing parameter 'enabled'"); | 661 return Status(kUnknownError, "missing parameter 'enabled'"); |
| 662 session->auto_reporting_enabled = enabled; | 662 session->auto_reporting_enabled = enabled; |
| 663 return Status(kOk); | 663 return Status(kOk); |
| 664 } | 664 } |
| OLD | NEW |