| 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_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/stringprintf.h" | 21 #include "base/stringprintf.h" |
| 22 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
| 23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 24 #include "base/values.h" | 24 #include "base/values.h" |
| 25 #include "chrome/app/chrome_command_ids.h" | 25 #include "chrome/app/chrome_command_ids.h" |
| 26 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
| 27 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 26 #include "chrome/browser/automation/automation_provider.h" | 28 #include "chrome/browser/automation/automation_provider.h" |
| 27 #include "chrome/browser/automation/automation_provider_json.h" | 29 #include "chrome/browser/automation/automation_provider_json.h" |
| 28 #include "chrome/browser/bookmarks/bookmark_model.h" | 30 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 29 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 31 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 30 #include "chrome/browser/browser_process.h" | 32 #include "chrome/browser/browser_process.h" |
| 31 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 33 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 32 #include "chrome/browser/extensions/crx_installer.h" | 34 #include "chrome/browser/extensions/crx_installer.h" |
| 33 #include "chrome/browser/extensions/extension_host.h" | 35 #include "chrome/browser/extensions/extension_host.h" |
| 34 #include "chrome/browser/extensions/extension_process_manager.h" | 36 #include "chrome/browser/extensions/extension_process_manager.h" |
| 35 #include "chrome/browser/extensions/extension_service.h" | 37 #include "chrome/browser/extensions/extension_service.h" |
| 36 #include "chrome/browser/extensions/extension_tab_util.h" | 38 #include "chrome/browser/extensions/extension_tab_util.h" |
| 37 #include "chrome/browser/history/history_types.h" | 39 #include "chrome/browser/history/history_types.h" |
| 38 #include "chrome/browser/history/top_sites.h" | 40 #include "chrome/browser/history/top_sites.h" |
| 39 #include "chrome/browser/infobars/infobar_tab_helper.h" | |
| 40 #include "chrome/browser/metrics/metric_event_duration_details.h" | 41 #include "chrome/browser/metrics/metric_event_duration_details.h" |
| 41 #include "chrome/browser/notifications/balloon.h" | 42 #include "chrome/browser/notifications/balloon.h" |
| 42 #include "chrome/browser/notifications/balloon_collection.h" | 43 #include "chrome/browser/notifications/balloon_collection.h" |
| 43 #include "chrome/browser/notifications/balloon_host.h" | 44 #include "chrome/browser/notifications/balloon_host.h" |
| 44 #include "chrome/browser/notifications/notification.h" | 45 #include "chrome/browser/notifications/notification.h" |
| 45 #include "chrome/browser/notifications/notification_ui_manager.h" | 46 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 46 #include "chrome/browser/password_manager/password_store_change.h" | 47 #include "chrome/browser/password_manager/password_store_change.h" |
| 47 #include "chrome/browser/profiles/profile.h" | 48 #include "chrome/browser/profiles/profile.h" |
| 48 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 49 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 49 #include "chrome/browser/search_engines/template_url_service.h" | 50 #include "chrome/browser/search_engines/template_url_service.h" |
| 50 #include "chrome/browser/search_engines/template_url_service_factory.h" | 51 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 51 #include "chrome/browser/sessions/restore_tab_helper.h" | 52 #include "chrome/browser/sessions/restore_tab_helper.h" |
| 52 #include "chrome/browser/sessions/tab_restore_service.h" | 53 #include "chrome/browser/sessions/tab_restore_service.h" |
| 53 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 54 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 54 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | |
| 55 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 55 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 56 #include "chrome/browser/translate/page_translated_details.h" | 56 #include "chrome/browser/translate/page_translated_details.h" |
| 57 #include "chrome/browser/translate/translate_infobar_delegate.h" | 57 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 58 #include "chrome/browser/translate/translate_tab_helper.h" | 58 #include "chrome/browser/translate/translate_tab_helper.h" |
| 59 #include "chrome/browser/ui/browser.h" | 59 #include "chrome/browser/ui/browser.h" |
| 60 #include "chrome/browser/ui/browser_list.h" | 60 #include "chrome/browser/ui/browser_list.h" |
| 61 #include "chrome/browser/ui/browser_tabstrip.h" | 61 #include "chrome/browser/ui/browser_tabstrip.h" |
| 62 #include "chrome/browser/ui/browser_window.h" | 62 #include "chrome/browser/ui/browser_window.h" |
| 63 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 63 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 64 #include "chrome/browser/ui/login/login_prompt.h" | 64 #include "chrome/browser/ui/login/login_prompt.h" |
| (...skipping 3092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 if (automation_) { | 3157 if (automation_) { |
| 3158 AutomationJSONReply(automation_, reply_message_.release()) | 3158 AutomationJSONReply(automation_, reply_message_.release()) |
| 3159 .SendSuccess(NULL); | 3159 .SendSuccess(NULL); |
| 3160 } | 3160 } |
| 3161 delete this; | 3161 delete this; |
| 3162 } | 3162 } |
| 3163 } else { | 3163 } else { |
| 3164 NOTREACHED(); | 3164 NOTREACHED(); |
| 3165 } | 3165 } |
| 3166 } | 3166 } |
| OLD | NEW |