| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" | 53 #include "chrome/browser/profiles/profile.h" |
| 54 #include "chrome/browser/platform_util.h" | 54 #include "chrome/browser/platform_util.h" |
| 55 #include "chrome/browser/prefs/pref_service.h" | 55 #include "chrome/browser/prefs/pref_service.h" |
| 56 #include "chrome/browser/profiles/profile_manager.h" | 56 #include "chrome/browser/profiles/profile_manager.h" |
| 57 #include "chrome/browser/search_engines/template_url.h" | 57 #include "chrome/browser/search_engines/template_url.h" |
| 58 #include "chrome/browser/search_engines/template_url_model.h" | 58 #include "chrome/browser/search_engines/template_url_model.h" |
| 59 #include "chrome/browser/tab_contents/infobar_delegate.h" | 59 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 60 #include "chrome/browser/tab_contents/interstitial_page.h" | |
| 61 #include "chrome/browser/translate/translate_infobar_delegate.h" | 60 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 62 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 61 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
| 63 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 62 #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" | 63 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
| 65 #include "chrome/browser/ui/find_bar/find_bar.h" | 64 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 66 #include "chrome/browser/ui/login/login_prompt.h" | 65 #include "chrome/browser/ui/login/login_prompt.h" |
| 67 #include "chrome/browser/ui/omnibox/location_bar.h" | 66 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 68 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 67 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 69 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 68 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 70 #include "chrome/common/chrome_constants.h" | 69 #include "chrome/common/chrome_constants.h" |
| 71 #include "chrome/common/chrome_paths.h" | 70 #include "chrome/common/chrome_paths.h" |
| 72 #include "chrome/common/chrome_switches.h" | 71 #include "chrome/common/chrome_switches.h" |
| 73 #include "chrome/common/net/url_request_context_getter.h" | 72 #include "chrome/common/net/url_request_context_getter.h" |
| 74 #include "chrome/common/notification_service.h" | 73 #include "chrome/common/notification_service.h" |
| 75 #include "chrome/common/url_constants.h" | 74 #include "chrome/common/url_constants.h" |
| 76 #include "chrome/common/automation_messages.h" | 75 #include "chrome/common/automation_messages.h" |
| 77 #include "content/browser/renderer_host/render_process_host.h" | 76 #include "content/browser/renderer_host/render_process_host.h" |
| 78 #include "content/browser/renderer_host/render_view_host.h" | 77 #include "content/browser/renderer_host/render_view_host.h" |
| 78 #include "content/browser/tab_contents/interstitial_page.h" |
| 79 #include "net/base/cookie_store.h" | 79 #include "net/base/cookie_store.h" |
| 80 #include "net/url_request/url_request_context.h" | 80 #include "net/url_request/url_request_context.h" |
| 81 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 81 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 82 #include "ui/base/events.h" | 82 #include "ui/base/events.h" |
| 83 #include "ui/base/message_box_flags.h" | 83 #include "ui/base/message_box_flags.h" |
| 84 #include "webkit/plugins/npapi/plugin_list.h" | 84 #include "webkit/plugins/npapi/plugin_list.h" |
| 85 | 85 |
| 86 namespace { | 86 namespace { |
| 87 | 87 |
| 88 void GetCookiesOnIOThread( | 88 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 | 4789 // If you change this, update Observer for NotificationType::SESSION_END |
| 4790 // below. | 4790 // below. |
| 4791 MessageLoop::current()->PostTask(FROM_HERE, | 4791 MessageLoop::current()->PostTask(FROM_HERE, |
| 4792 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); | 4792 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); |
| 4793 } | 4793 } |
| 4794 } | 4794 } |
| 4795 | 4795 |
| 4796 void TestingAutomationProvider::OnRemoveProvider() { | 4796 void TestingAutomationProvider::OnRemoveProvider() { |
| 4797 AutomationProviderList::GetInstance()->RemoveProvider(this); | 4797 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 4798 } | 4798 } |
| OLD | NEW |