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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/app/chrome_command_ids.h" | 28 #include "chrome/app/chrome_command_ids.h" |
29 #include "chrome/browser/automation/automation_browser_tracker.h" | 29 #include "chrome/browser/automation/automation_browser_tracker.h" |
30 #include "chrome/browser/automation/automation_provider_list.h" | 30 #include "chrome/browser/automation/automation_provider_list.h" |
31 #include "chrome/browser/automation/automation_provider_observers.h" | 31 #include "chrome/browser/automation/automation_provider_observers.h" |
32 #include "chrome/browser/automation/automation_resource_message_filter.h" | 32 #include "chrome/browser/automation/automation_resource_message_filter.h" |
33 #include "chrome/browser/automation/automation_tab_tracker.h" | 33 #include "chrome/browser/automation/automation_tab_tracker.h" |
34 #include "chrome/browser/automation/automation_window_tracker.h" | 34 #include "chrome/browser/automation/automation_window_tracker.h" |
35 #include "chrome/browser/bookmarks/bookmark_model.h" | 35 #include "chrome/browser/bookmarks/bookmark_model.h" |
36 #include "chrome/browser/bookmarks/bookmark_storage.h" | 36 #include "chrome/browser/bookmarks/bookmark_storage.h" |
37 #include "chrome/browser/browser_process.h" | 37 #include "chrome/browser/browser_process.h" |
38 #include "chrome/browser/browsing_data_helper.h" | 38 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
39 #include "chrome/browser/browsing_data_remover.h" | 39 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
40 #include "chrome/browser/character_encoding.h" | 40 #include "chrome/browser/character_encoding.h" |
41 #include "chrome/browser/content_settings/host_content_settings_map.h" | 41 #include "chrome/browser/content_settings/host_content_settings_map.h" |
42 #include "chrome/browser/net/url_request_mock_util.h" | 42 #include "chrome/browser/net/url_request_mock_util.h" |
43 #include "chrome/browser/prefs/pref_service.h" | 43 #include "chrome/browser/prefs/pref_service.h" |
44 #include "chrome/browser/printing/print_job.h" | 44 #include "chrome/browser/printing/print_job.h" |
45 #include "chrome/browser/profiles/profile_manager.h" | 45 #include "chrome/browser/profiles/profile_manager.h" |
46 #include "chrome/browser/ssl/ssl_blocking_page.h" | 46 #include "chrome/browser/ssl/ssl_blocking_page.h" |
47 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 47 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
48 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 48 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
49 #include "chrome/browser/ui/browser_commands.h" | 49 #include "chrome/browser/ui/browser_commands.h" |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 | 750 |
751 return NULL; | 751 return NULL; |
752 } | 752 } |
753 | 753 |
754 void AutomationProvider::SaveAsAsync(int tab_handle) { | 754 void AutomationProvider::SaveAsAsync(int tab_handle) { |
755 NavigationController* tab = NULL; | 755 NavigationController* tab = NULL; |
756 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); | 756 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); |
757 if (web_contents) | 757 if (web_contents) |
758 web_contents->OnSavePage(); | 758 web_contents->OnSavePage(); |
759 } | 759 } |
OLD | NEW |