| 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/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 16 #include "base/thread_restrictions.h" | 16 #include "base/thread_restrictions.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/app/chrome_command_ids.h" | 18 #include "chrome/app/chrome_command_ids.h" |
| 19 #include "chrome/browser/automation/automation_provider.h" | 19 #include "chrome/browser/automation/automation_provider.h" |
| 20 #include "chrome/browser/automation/automation_provider_json.h" | 20 #include "chrome/browser/automation/automation_provider_json.h" |
| 21 #include "chrome/browser/bookmarks/bookmark_model.h" | 21 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 22 #include "chrome/browser/browser.h" | |
| 23 #include "chrome/browser/browser_list.h" | 22 #include "chrome/browser/browser_list.h" |
| 24 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/dom_operation_notification_details.h" | 24 #include "chrome/browser/dom_operation_notification_details.h" |
| 26 #include "chrome/browser/download/download_item.h" | 25 #include "chrome/browser/download/download_item.h" |
| 27 #include "chrome/browser/download/save_package.h" | 26 #include "chrome/browser/download/save_package.h" |
| 28 #include "chrome/browser/extensions/extension_host.h" | 27 #include "chrome/browser/extensions/extension_host.h" |
| 29 #include "chrome/browser/extensions/extension_process_manager.h" | 28 #include "chrome/browser/extensions/extension_process_manager.h" |
| 30 #include "chrome/browser/extensions/extension_updater.h" | 29 #include "chrome/browser/extensions/extension_updater.h" |
| 31 #include "chrome/browser/login_prompt.h" | 30 #include "chrome/browser/login_prompt.h" |
| 32 #include "chrome/browser/metrics/metric_event_duration_details.h" | 31 #include "chrome/browser/metrics/metric_event_duration_details.h" |
| 33 #include "chrome/browser/notifications/balloon.h" | 32 #include "chrome/browser/notifications/balloon.h" |
| 34 #include "chrome/browser/notifications/balloon_collection.h" | 33 #include "chrome/browser/notifications/balloon_collection.h" |
| 35 #include "chrome/browser/printing/print_job.h" | 34 #include "chrome/browser/printing/print_job.h" |
| 36 #include "chrome/browser/profile.h" | 35 #include "chrome/browser/profile.h" |
| 37 #include "chrome/browser/renderer_host/render_view_host.h" | 36 #include "chrome/browser/renderer_host/render_view_host.h" |
| 38 #include "chrome/browser/search_engines/template_url_model.h" | 37 #include "chrome/browser/search_engines/template_url_model.h" |
| 39 #include "chrome/browser/tab_contents/navigation_controller.h" | 38 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 40 #include "chrome/browser/tab_contents/tab_contents.h" | 39 #include "chrome/browser/tab_contents/tab_contents.h" |
| 41 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 40 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 42 #include "chrome/browser/translate/page_translated_details.h" | 41 #include "chrome/browser/translate/page_translated_details.h" |
| 43 #include "chrome/browser/translate/translate_infobar_delegate.h" | 42 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 43 #include "chrome/browser/ui/browser.h" |
| 44 #include "chrome/common/automation_constants.h" | 44 #include "chrome/common/automation_constants.h" |
| 45 #include "chrome/common/extensions/extension.h" | 45 #include "chrome/common/extensions/extension.h" |
| 46 #include "chrome/common/notification_service.h" | 46 #include "chrome/common/notification_service.h" |
| 47 #include "gfx/codec/png_codec.h" | 47 #include "gfx/codec/png_codec.h" |
| 48 #include "gfx/rect.h" | 48 #include "gfx/rect.h" |
| 49 | 49 |
| 50 #if defined(OS_CHROMEOS) | 50 #if defined(OS_CHROMEOS) |
| 51 #include "chrome/browser/chromeos/login/authentication_notification_details.h" | 51 #include "chrome/browser/chromeos/login/authentication_notification_details.h" |
| 52 #endif | 52 #endif |
| 53 | 53 |
| (...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); | 1437 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); |
| 1438 } | 1438 } |
| 1439 | 1439 |
| 1440 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { | 1440 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { |
| 1441 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { | 1441 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { |
| 1442 collection_->set_on_collection_changed_callback(NULL); | 1442 collection_->set_on_collection_changed_callback(NULL); |
| 1443 reply_.SendSuccess(NULL); | 1443 reply_.SendSuccess(NULL); |
| 1444 delete this; | 1444 delete this; |
| 1445 } | 1445 } |
| 1446 } | 1446 } |
| OLD | NEW |