| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/autocomplete/autocomplete_match.h" | 25 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 26 #include "chrome/browser/autofill/autofill_manager.h" | 26 #include "chrome/browser/autofill/autofill_manager.h" |
| 27 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" | 27 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" |
| 28 #include "chrome/browser/automation/automation_browser_tracker.h" | 28 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 29 #include "chrome/browser/automation/automation_provider_json.h" | 29 #include "chrome/browser/automation/automation_provider_json.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_tab_tracker.h" | 32 #include "chrome/browser/automation/automation_tab_tracker.h" |
| 33 #include "chrome/browser/automation/automation_window_tracker.h" | 33 #include "chrome/browser/automation/automation_window_tracker.h" |
| 34 #include "chrome/browser/automation/ui_controls.h" | 34 #include "chrome/browser/automation/ui_controls.h" |
| 35 #include "chrome/browser/blocked_content_container.h" |
| 35 #include "chrome/browser/bookmarks/bookmark_model.h" | 36 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 36 #include "chrome/browser/bookmarks/bookmark_storage.h" | 37 #include "chrome/browser/bookmarks/bookmark_storage.h" |
| 37 #include "chrome/browser/blocked_content_container.h" | |
| 38 #include "chrome/browser/browser_process.h" | 38 #include "chrome/browser/browser_process.h" |
| 39 #include "chrome/browser/browser_shutdown.h" | 39 #include "chrome/browser/browser_shutdown.h" |
| 40 #include "chrome/browser/browser_window.h" | 40 #include "chrome/browser/browser_window.h" |
| 41 #include "chrome/browser/debugger/devtools_manager.h" | 41 #include "chrome/browser/debugger/devtools_manager.h" |
| 42 #include "chrome/browser/download/download_prefs.h" | 42 #include "chrome/browser/download/download_prefs.h" |
| 43 #include "chrome/browser/download/download_shelf.h" | 43 #include "chrome/browser/download/download_shelf.h" |
| 44 #include "chrome/browser/extensions/extension_host.h" | 44 #include "chrome/browser/extensions/extension_host.h" |
| 45 #include "chrome/browser/extensions/extension_service.h" | 45 #include "chrome/browser/extensions/extension_service.h" |
| 46 #include "chrome/browser/instant/instant_controller.h" | |
| 47 #include "chrome/browser/history/top_sites.h" | 46 #include "chrome/browser/history/top_sites.h" |
| 48 #include "chrome/browser/importer/importer.h" | 47 #include "chrome/browser/importer/importer.h" |
| 48 #include "chrome/browser/instant/instant_controller.h" |
| 49 #include "chrome/browser/notifications/balloon.h" | 49 #include "chrome/browser/notifications/balloon.h" |
| 50 #include "chrome/browser/notifications/balloon_collection.h" | 50 #include "chrome/browser/notifications/balloon_collection.h" |
| 51 #include "chrome/browser/notifications/notification.h" | 51 #include "chrome/browser/notifications/notification.h" |
| 52 #include "chrome/browser/notifications/notification_ui_manager.h" | 52 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 53 #include "chrome/browser/profiles/profile.h" | |
| 54 #include "chrome/browser/platform_util.h" | 53 #include "chrome/browser/platform_util.h" |
| 55 #include "chrome/browser/prefs/pref_service.h" | 54 #include "chrome/browser/prefs/pref_service.h" |
| 55 #include "chrome/browser/profiles/profile.h" |
| 56 #include "chrome/browser/profiles/profile_manager.h" | 56 #include "chrome/browser/profiles/profile_manager.h" |
| 57 #include "chrome/browser/renderer_host/render_process_host.h" | 57 #include "chrome/browser/renderer_host/render_process_host.h" |
| 58 #include "chrome/browser/renderer_host/render_view_host.h" | 58 #include "chrome/browser/renderer_host/render_view_host.h" |
| 59 #include "chrome/browser/search_engines/template_url.h" | 59 #include "chrome/browser/search_engines/template_url.h" |
| 60 #include "chrome/browser/search_engines/template_url_model.h" | 60 #include "chrome/browser/search_engines/template_url_model.h" |
| 61 #include "chrome/browser/tab_contents/infobar_delegate.h" | 61 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 62 #include "chrome/browser/tab_contents/interstitial_page.h" | 62 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 63 #include "chrome/browser/tab_contents/link_infobar_delegate.h" |
| 63 #include "chrome/browser/translate/translate_infobar_delegate.h" | 64 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 64 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 65 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
| 65 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 66 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| 66 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" | 67 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
| 67 #include "chrome/browser/ui/find_bar/find_bar.h" | 68 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 68 #include "chrome/browser/ui/login/login_prompt.h" | 69 #include "chrome/browser/ui/login/login_prompt.h" |
| 69 #include "chrome/browser/ui/omnibox/location_bar.h" | 70 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 70 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 71 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 71 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 72 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 73 #include "chrome/common/automation_messages.h" |
| 72 #include "chrome/common/chrome_constants.h" | 74 #include "chrome/common/chrome_constants.h" |
| 73 #include "chrome/common/chrome_paths.h" | 75 #include "chrome/common/chrome_paths.h" |
| 74 #include "chrome/common/chrome_switches.h" | 76 #include "chrome/common/chrome_switches.h" |
| 75 #include "chrome/common/net/url_request_context_getter.h" | 77 #include "chrome/common/net/url_request_context_getter.h" |
| 76 #include "chrome/common/notification_service.h" | 78 #include "chrome/common/notification_service.h" |
| 77 #include "chrome/common/url_constants.h" | 79 #include "chrome/common/url_constants.h" |
| 78 #include "chrome/common/automation_messages.h" | |
| 79 #include "net/base/cookie_store.h" | 80 #include "net/base/cookie_store.h" |
| 80 #include "net/url_request/url_request_context.h" | 81 #include "net/url_request/url_request_context.h" |
| 81 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 82 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 82 #include "ui/base/events.h" | 83 #include "ui/base/events.h" |
| 83 #include "ui/base/message_box_flags.h" | 84 #include "ui/base/message_box_flags.h" |
| 84 #include "webkit/plugins/npapi/plugin_list.h" | 85 #include "webkit/plugins/npapi/plugin_list.h" |
| 85 | 86 |
| 86 namespace { | 87 namespace { |
| 87 | 88 |
| 88 void GetCookiesOnIOThread( | 89 void GetCookiesOnIOThread( |
| (...skipping 4700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4789 // If you change this, update Observer for NotificationType::SESSION_END | 4790 // If you change this, update Observer for NotificationType::SESSION_END |
| 4790 // below. | 4791 // below. |
| 4791 MessageLoop::current()->PostTask(FROM_HERE, | 4792 MessageLoop::current()->PostTask(FROM_HERE, |
| 4792 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); | 4793 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); |
| 4793 } | 4794 } |
| 4794 } | 4795 } |
| 4795 | 4796 |
| 4796 void TestingAutomationProvider::OnRemoveProvider() { | 4797 void TestingAutomationProvider::OnRemoveProvider() { |
| 4797 AutomationProviderList::GetInstance()->RemoveProvider(this); | 4798 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 4798 } | 4799 } |
| OLD | NEW |