Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 7373004: Move the save file code from chrome to content. This is just a file move so the DEPS in content\b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 #include "chrome/browser/automation/automation_tab_tracker.h" 36 #include "chrome/browser/automation/automation_tab_tracker.h"
37 #include "chrome/browser/automation/automation_util.h" 37 #include "chrome/browser/automation/automation_util.h"
38 #include "chrome/browser/automation/automation_window_tracker.h" 38 #include "chrome/browser/automation/automation_window_tracker.h"
39 #include "chrome/browser/automation/ui_controls.h" 39 #include "chrome/browser/automation/ui_controls.h"
40 #include "chrome/browser/bookmarks/bookmark_model.h" 40 #include "chrome/browser/bookmarks/bookmark_model.h"
41 #include "chrome/browser/bookmarks/bookmark_storage.h" 41 #include "chrome/browser/bookmarks/bookmark_storage.h"
42 #include "chrome/browser/browser_process.h" 42 #include "chrome/browser/browser_process.h"
43 #include "chrome/browser/browser_shutdown.h" 43 #include "chrome/browser/browser_shutdown.h"
44 #include "chrome/browser/content_settings/host_content_settings_map.h" 44 #include "chrome/browser/content_settings/host_content_settings_map.h"
45 #include "chrome/browser/download/download_prefs.h" 45 #include "chrome/browser/download/download_prefs.h"
46 #include "chrome/browser/download/save_package.h" 46 #include "chrome/browser/download/save_package_file_picker.h"
47 #include "chrome/browser/extensions/extension_host.h" 47 #include "chrome/browser/extensions/extension_host.h"
48 #include "chrome/browser/extensions/extension_service.h" 48 #include "chrome/browser/extensions/extension_service.h"
49 #include "chrome/browser/extensions/extension_updater.h" 49 #include "chrome/browser/extensions/extension_updater.h"
50 #include "chrome/browser/history/top_sites.h" 50 #include "chrome/browser/history/top_sites.h"
51 #include "chrome/browser/importer/importer_host.h" 51 #include "chrome/browser/importer/importer_host.h"
52 #include "chrome/browser/instant/instant_controller.h" 52 #include "chrome/browser/instant/instant_controller.h"
53 #include "chrome/browser/notifications/balloon.h" 53 #include "chrome/browser/notifications/balloon.h"
54 #include "chrome/browser/notifications/balloon_collection.h" 54 #include "chrome/browser/notifications/balloon_collection.h"
55 #include "chrome/browser/notifications/notification.h" 55 #include "chrome/browser/notifications/notification.h"
56 #include "chrome/browser/notifications/notification_ui_manager.h" 56 #include "chrome/browser/notifications/notification_ui_manager.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 #include "chrome/common/chrome_notification_types.h" 90 #include "chrome/common/chrome_notification_types.h"
91 #include "chrome/common/chrome_paths.h" 91 #include "chrome/common/chrome_paths.h"
92 #include "chrome/common/chrome_switches.h" 92 #include "chrome/common/chrome_switches.h"
93 #include "chrome/common/extensions/extension.h" 93 #include "chrome/common/extensions/extension.h"
94 #include "chrome/common/extensions/url_pattern.h" 94 #include "chrome/common/extensions/url_pattern.h"
95 #include "chrome/common/extensions/url_pattern_set.h" 95 #include "chrome/common/extensions/url_pattern_set.h"
96 #include "chrome/common/pref_names.h" 96 #include "chrome/common/pref_names.h"
97 #include "chrome/common/render_messages.h" 97 #include "chrome/common/render_messages.h"
98 #include "chrome/common/url_constants.h" 98 #include "chrome/common/url_constants.h"
99 #include "content/browser/debugger/devtools_window.h" 99 #include "content/browser/debugger/devtools_window.h"
100 #include "content/browser/download/save_package.h"
100 #include "content/browser/renderer_host/render_process_host.h" 101 #include "content/browser/renderer_host/render_process_host.h"
101 #include "content/browser/renderer_host/render_view_host.h" 102 #include "content/browser/renderer_host/render_view_host.h"
102 #include "content/browser/tab_contents/interstitial_page.h" 103 #include "content/browser/tab_contents/interstitial_page.h"
103 #include "content/common/common_param_traits.h" 104 #include "content/common/common_param_traits.h"
104 #include "content/common/notification_service.h" 105 #include "content/common/notification_service.h"
105 #include "net/base/cookie_store.h" 106 #include "net/base/cookie_store.h"
106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
107 #include "ui/base/events.h" 108 #include "ui/base/events.h"
108 #include "ui/base/keycodes/keyboard_codes.h" 109 #include "ui/base/keycodes/keyboard_codes.h"
109 #include "ui/base/message_box_flags.h" 110 #include "ui/base/message_box_flags.h"
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 } 2057 }
2057 } 2058 }
2058 2059
2059 AutomationMsg_GoForwardBlockUntilNavigationsComplete::WriteReplyParams( 2060 AutomationMsg_GoForwardBlockUntilNavigationsComplete::WriteReplyParams(
2060 reply_message, AUTOMATION_MSG_NAVIGATION_ERROR); 2061 reply_message, AUTOMATION_MSG_NAVIGATION_ERROR);
2061 Send(reply_message); 2062 Send(reply_message);
2062 } 2063 }
2063 2064
2064 void TestingAutomationProvider::SavePackageShouldPromptUser( 2065 void TestingAutomationProvider::SavePackageShouldPromptUser(
2065 bool should_prompt) { 2066 bool should_prompt) {
2066 SavePackage::SetShouldPromptUser(should_prompt); 2067 SavePackageFilePicker::SetShouldPromptUser(should_prompt);
2067 } 2068 }
2068 2069
2069 void TestingAutomationProvider::SetShelfVisibility(int handle, bool visible) { 2070 void TestingAutomationProvider::SetShelfVisibility(int handle, bool visible) {
2070 if (browser_tracker_->ContainsHandle(handle)) { 2071 if (browser_tracker_->ContainsHandle(handle)) {
2071 Browser* browser = browser_tracker_->GetResource(handle); 2072 Browser* browser = browser_tracker_->GetResource(handle);
2072 if (browser) { 2073 if (browser) {
2073 #if defined(OS_CHROMEOS) 2074 #if defined(OS_CHROMEOS)
2074 Browser* popup_browser = 2075 Browser* popup_browser =
2075 ActiveDownloadsUI::GetPopup(); 2076 ActiveDownloadsUI::GetPopup();
2076 if (!popup_browser && visible) 2077 if (!popup_browser && visible)
(...skipping 3973 matching lines...) Expand 10 before | Expand all | Expand 10 after
6050 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); 6051 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl);
6051 6052
6052 Send(reply_message_); 6053 Send(reply_message_);
6053 redirect_query_ = 0; 6054 redirect_query_ = 0;
6054 reply_message_ = NULL; 6055 reply_message_ = NULL;
6055 } 6056 }
6056 6057
6057 void TestingAutomationProvider::OnRemoveProvider() { 6058 void TestingAutomationProvider::OnRemoveProvider() {
6058 AutomationProviderList::GetInstance()->RemoveProvider(this); 6059 AutomationProviderList::GetInstance()->RemoveProvider(this);
6059 } 6060 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698