| 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/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/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
| 18 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
| 19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
| 20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "chrome/app/chrome_command_ids.h" | 22 #include "chrome/app/chrome_command_ids.h" |
| 23 #include "chrome/browser/automation/automation_provider.h" | 23 #include "chrome/browser/automation/automation_provider.h" |
| 24 #include "chrome/browser/automation/automation_provider_json.h" | 24 #include "chrome/browser/automation/automation_provider_json.h" |
| 25 #include "chrome/browser/bookmarks/bookmark_model.h" | 25 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 26 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
| 27 #include "chrome/browser/dom_operation_notification_details.h" | 27 #include "chrome/browser/dom_operation_notification_details.h" |
| 28 #include "chrome/browser/download/download_item.h" | 28 #include "chrome/browser/download/download_item.h" |
| 29 #include "chrome/browser/download/save_package.h" | |
| 30 #include "chrome/browser/extensions/crx_installer.h" | 29 #include "chrome/browser/extensions/crx_installer.h" |
| 31 #include "chrome/browser/extensions/extension_host.h" | 30 #include "chrome/browser/extensions/extension_host.h" |
| 32 #include "chrome/browser/extensions/extension_process_manager.h" | 31 #include "chrome/browser/extensions/extension_process_manager.h" |
| 33 #include "chrome/browser/extensions/extension_tabs_module.h" | 32 #include "chrome/browser/extensions/extension_tabs_module.h" |
| 34 #include "chrome/browser/extensions/extension_updater.h" | 33 #include "chrome/browser/extensions/extension_updater.h" |
| 35 #include "chrome/browser/history/history_types.h" | 34 #include "chrome/browser/history/history_types.h" |
| 36 #include "chrome/browser/history/top_sites.h" | 35 #include "chrome/browser/history/top_sites.h" |
| 37 #include "chrome/browser/metrics/metric_event_duration_details.h" | 36 #include "chrome/browser/metrics/metric_event_duration_details.h" |
| 38 #include "chrome/browser/notifications/balloon.h" | 37 #include "chrome/browser/notifications/balloon.h" |
| 39 #include "chrome/browser/notifications/balloon_collection.h" | 38 #include "chrome/browser/notifications/balloon_collection.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 56 #include "chrome/browser/ui/browser_list.h" | 55 #include "chrome/browser/ui/browser_list.h" |
| 57 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 56 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 58 #include "chrome/browser/ui/login/login_prompt.h" | 57 #include "chrome/browser/ui/login/login_prompt.h" |
| 59 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 58 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 60 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 59 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
| 61 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" | 60 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" |
| 62 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 61 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 63 #include "chrome/common/automation_messages.h" | 62 #include "chrome/common/automation_messages.h" |
| 64 #include "chrome/common/chrome_notification_types.h" | 63 #include "chrome/common/chrome_notification_types.h" |
| 65 #include "chrome/common/extensions/extension.h" | 64 #include "chrome/common/extensions/extension.h" |
| 65 #include "content/browser/download/save_package.h" |
| 66 #include "content/browser/renderer_host/render_process_host.h" | 66 #include "content/browser/renderer_host/render_process_host.h" |
| 67 #include "content/browser/renderer_host/render_view_host.h" | 67 #include "content/browser/renderer_host/render_view_host.h" |
| 68 #include "content/browser/tab_contents/navigation_controller.h" | 68 #include "content/browser/tab_contents/navigation_controller.h" |
| 69 #include "content/browser/tab_contents/tab_contents.h" | 69 #include "content/browser/tab_contents/tab_contents.h" |
| 70 #include "content/common/notification_service.h" | 70 #include "content/common/notification_service.h" |
| 71 #include "googleurl/src/gurl.h" | 71 #include "googleurl/src/gurl.h" |
| 72 #include "ui/gfx/codec/png_codec.h" | 72 #include "ui/gfx/codec/png_codec.h" |
| 73 #include "ui/gfx/rect.h" | 73 #include "ui/gfx/rect.h" |
| 74 | 74 |
| 75 // Holds onto start and stop timestamps for a particular tab | 75 // Holds onto start and stop timestamps for a particular tab |
| (...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 void DragTargetDropAckNotificationObserver::Observe( | 2592 void DragTargetDropAckNotificationObserver::Observe( |
| 2593 int type, | 2593 int type, |
| 2594 const NotificationSource& source, | 2594 const NotificationSource& source, |
| 2595 const NotificationDetails& details) { | 2595 const NotificationDetails& details) { |
| 2596 if (automation_) { | 2596 if (automation_) { |
| 2597 AutomationJSONReply(automation_, | 2597 AutomationJSONReply(automation_, |
| 2598 reply_message_.release()).SendSuccess(NULL); | 2598 reply_message_.release()).SendSuccess(NULL); |
| 2599 } | 2599 } |
| 2600 delete this; | 2600 delete this; |
| 2601 } | 2601 } |
| OLD | NEW |