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/browser/automation/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
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/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_string_value_serializer.h" | 15 #include "base/json/json_string_value_serializer.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/json/string_escape.h" | 17 #include "base/json/string_escape.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/prefs/pref_service.h" | 20 #include "base/prefs/pref_service.h" |
21 #include "base/process_util.h" | |
22 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
23 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
26 #include "base/synchronization/waitable_event.h" | 25 #include "base/synchronization/waitable_event.h" |
27 #include "base/threading/thread.h" | 26 #include "base/threading/thread.h" |
28 #include "base/values.h" | 27 #include "base/values.h" |
29 #include "chrome/app/chrome_command_ids.h" | 28 #include "chrome/app/chrome_command_ids.h" |
30 #include "chrome/browser/automation/automation_browser_tracker.h" | 29 #include "chrome/browser/automation/automation_browser_tracker.h" |
31 #include "chrome/browser/automation/automation_provider_list.h" | 30 #include "chrome/browser/automation/automation_provider_list.h" |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 827 |
829 return NULL; | 828 return NULL; |
830 } | 829 } |
831 | 830 |
832 void AutomationProvider::SaveAsAsync(int tab_handle) { | 831 void AutomationProvider::SaveAsAsync(int tab_handle) { |
833 NavigationController* tab = NULL; | 832 NavigationController* tab = NULL; |
834 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); | 833 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); |
835 if (web_contents) | 834 if (web_contents) |
836 web_contents->OnSavePage(); | 835 web_contents->OnSavePage(); |
837 } | 836 } |
OLD | NEW |