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/window_commands.h" | 5 #include "chrome/test/chromedriver/window_commands.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.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/chrome/automation_extension.h" | 19 #include "chrome/test/chromedriver/chrome/automation_extension.h" |
20 #include "chrome/test/chromedriver/chrome/browser_info.h" | 20 #include "chrome/test/chromedriver/chrome/browser_info.h" |
21 #include "chrome/test/chromedriver/chrome/chrome.h" | 21 #include "chrome/test/chromedriver/chrome/chrome.h" |
22 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" | 22 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" |
23 #include "chrome/test/chromedriver/chrome/devtools_client.h" | 23 #include "chrome/test/chromedriver/chrome/devtools_client.h" |
24 #include "chrome/test/chromedriver/chrome/geoposition.h" | 24 #include "chrome/test/chromedriver/chrome/geoposition.h" |
25 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h" | 25 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h" |
26 #include "chrome/test/chromedriver/chrome/js.h" | 26 #include "chrome/test/chromedriver/chrome/js.h" |
27 #include "chrome/test/chromedriver/chrome/network_conditions.h" | 27 #include "chrome/test/chromedriver/chrome/network_conditions.h" |
| 28 #include "chrome/test/chromedriver/chrome/network_list.h" |
28 #include "chrome/test/chromedriver/chrome/status.h" | 29 #include "chrome/test/chromedriver/chrome/status.h" |
29 #include "chrome/test/chromedriver/chrome/ui_events.h" | 30 #include "chrome/test/chromedriver/chrome/ui_events.h" |
30 #include "chrome/test/chromedriver/chrome/web_view.h" | 31 #include "chrome/test/chromedriver/chrome/web_view.h" |
31 #include "chrome/test/chromedriver/element_util.h" | 32 #include "chrome/test/chromedriver/element_util.h" |
32 #include "chrome/test/chromedriver/net/timeout.h" | 33 #include "chrome/test/chromedriver/net/timeout.h" |
33 #include "chrome/test/chromedriver/session.h" | 34 #include "chrome/test/chromedriver/session.h" |
34 #include "chrome/test/chromedriver/util.h" | 35 #include "chrome/test/chromedriver/util.h" |
35 | 36 |
36 namespace { | 37 namespace { |
37 | 38 |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 return status; | 1061 return status; |
1061 } | 1062 } |
1062 | 1063 |
1063 Status ExecuteTakeHeapSnapshot(Session* session, | 1064 Status ExecuteTakeHeapSnapshot(Session* session, |
1064 WebView* web_view, | 1065 WebView* web_view, |
1065 const base::DictionaryValue& params, | 1066 const base::DictionaryValue& params, |
1066 std::unique_ptr<base::Value>* value, | 1067 std::unique_ptr<base::Value>* value, |
1067 Timeout* timeout) { | 1068 Timeout* timeout) { |
1068 return web_view->TakeHeapSnapshot(value); | 1069 return web_view->TakeHeapSnapshot(value); |
1069 } | 1070 } |
OLD | NEW |