| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/message_box_flags.h" | 7 #include "app/message_box_flags.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/blocked_content_container.h" | 32 #include "chrome/browser/blocked_content_container.h" |
| 33 #include "chrome/browser/browser_process.h" | 33 #include "chrome/browser/browser_process.h" |
| 34 #include "chrome/browser/browser_shutdown.h" | 34 #include "chrome/browser/browser_shutdown.h" |
| 35 #include "chrome/browser/browser_window.h" | 35 #include "chrome/browser/browser_window.h" |
| 36 #include "chrome/browser/debugger/devtools_manager.h" | 36 #include "chrome/browser/debugger/devtools_manager.h" |
| 37 #include "chrome/browser/download/download_prefs.h" | 37 #include "chrome/browser/download/download_prefs.h" |
| 38 #include "chrome/browser/download/download_shelf.h" | 38 #include "chrome/browser/download/download_shelf.h" |
| 39 #include "chrome/browser/extensions/extension_host.h" | 39 #include "chrome/browser/extensions/extension_host.h" |
| 40 #include "chrome/browser/extensions/extensions_service.h" | 40 #include "chrome/browser/extensions/extensions_service.h" |
| 41 #include "chrome/browser/history/top_sites.h" | 41 #include "chrome/browser/history/top_sites.h" |
| 42 #include "chrome/browser/location_bar.h" | |
| 43 #include "chrome/browser/login_prompt.h" | 42 #include "chrome/browser/login_prompt.h" |
| 44 #include "chrome/browser/notifications/balloon.h" | 43 #include "chrome/browser/notifications/balloon.h" |
| 45 #include "chrome/browser/notifications/balloon_collection.h" | 44 #include "chrome/browser/notifications/balloon_collection.h" |
| 46 #include "chrome/browser/notifications/balloon_host.h" | 45 #include "chrome/browser/notifications/balloon_host.h" |
| 47 #include "chrome/browser/notifications/notification.h" | 46 #include "chrome/browser/notifications/notification.h" |
| 48 #include "chrome/browser/notifications/notification_ui_manager.h" | 47 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 49 #include "chrome/browser/profile.h" | 48 #include "chrome/browser/profile.h" |
| 50 #include "chrome/browser/platform_util.h" | 49 #include "chrome/browser/platform_util.h" |
| 51 #include "chrome/browser/prefs/pref_service.h" | 50 #include "chrome/browser/prefs/pref_service.h" |
| 52 #include "chrome/browser/profile_manager.h" | 51 #include "chrome/browser/profile_manager.h" |
| 53 #include "chrome/browser/renderer_host/render_process_host.h" | 52 #include "chrome/browser/renderer_host/render_process_host.h" |
| 54 #include "chrome/browser/renderer_host/render_view_host.h" | 53 #include "chrome/browser/renderer_host/render_view_host.h" |
| 55 #include "chrome/browser/search_engines/keyword_editor_controller.h" | 54 #include "chrome/browser/search_engines/keyword_editor_controller.h" |
| 56 #include "chrome/browser/search_engines/template_url.h" | 55 #include "chrome/browser/search_engines/template_url.h" |
| 57 #include "chrome/browser/search_engines/template_url_model.h" | 56 #include "chrome/browser/search_engines/template_url_model.h" |
| 58 #include "chrome/browser/tab_contents/infobar_delegate.h" | 57 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 59 #include "chrome/browser/tab_contents/interstitial_page.h" | 58 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 60 #include "chrome/browser/tab_contents_wrapper.h" | |
| 61 #include "chrome/browser/translate/translate_infobar_delegate.h" | 59 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 62 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 60 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
| 63 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 61 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| 64 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" | 62 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
| 65 #include "chrome/browser/ui/find_bar/find_bar.h" | 63 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 64 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 65 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 66 #include "chrome/common/chrome_constants.h" | 66 #include "chrome/common/chrome_constants.h" |
| 67 #include "chrome/common/chrome_paths.h" | 67 #include "chrome/common/chrome_paths.h" |
| 68 #include "chrome/common/chrome_switches.h" | 68 #include "chrome/common/chrome_switches.h" |
| 69 #include "chrome/common/net/url_request_context_getter.h" | 69 #include "chrome/common/net/url_request_context_getter.h" |
| 70 #include "chrome/common/notification_service.h" | 70 #include "chrome/common/notification_service.h" |
| 71 #include "chrome/common/url_constants.h" | 71 #include "chrome/common/url_constants.h" |
| 72 #include "chrome/common/automation_messages.h" | 72 #include "chrome/common/automation_messages.h" |
| 73 #include "net/base/cookie_store.h" | 73 #include "net/base/cookie_store.h" |
| 74 #include "net/url_request/url_request_context.h" | 74 #include "net/url_request/url_request_context.h" |
| 75 #include "views/event.h" | 75 #include "views/event.h" |
| (...skipping 4492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4568 DCHECK(type == NotificationType::SESSION_END); | 4568 DCHECK(type == NotificationType::SESSION_END); |
| 4569 // OnBrowserRemoved does a ReleaseLater. When session end is received we exit | 4569 // OnBrowserRemoved does a ReleaseLater. When session end is received we exit |
| 4570 // before the task runs resulting in this object not being deleted. This | 4570 // before the task runs resulting in this object not being deleted. This |
| 4571 // Release balance out the Release scheduled by OnBrowserRemoved. | 4571 // Release balance out the Release scheduled by OnBrowserRemoved. |
| 4572 Release(); | 4572 Release(); |
| 4573 } | 4573 } |
| 4574 | 4574 |
| 4575 void TestingAutomationProvider::OnRemoveProvider() { | 4575 void TestingAutomationProvider::OnRemoveProvider() { |
| 4576 AutomationProviderList::GetInstance()->RemoveProvider(this); | 4576 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 4577 } | 4577 } |
| OLD | NEW |