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/notifications/balloon_host.h" | 5 #include "chrome/browser/notifications/balloon_host.h" |
6 | 6 |
7 #include "chrome/browser/browser_list.h" | 7 #include "chrome/browser/browser_list.h" |
8 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
9 #include "chrome/browser/notifications/balloon.h" | 9 #include "chrome/browser/notifications/balloon.h" |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/renderer_host/site_instance.h" | 13 #include "chrome/browser/renderer_host/site_instance.h" |
14 #include "chrome/browser/renderer_preferences_util.h" | 14 #include "chrome/browser/renderer_preferences_util.h" |
15 #include "chrome/common/bindings_policy.h" | 15 #include "chrome/common/bindings_policy.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
17 #include "chrome/common/notification_type.h" | 17 #include "chrome/common/notification_type.h" |
18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
19 #include "chrome/common/renderer_preferences.h" | 19 #include "chrome/common/renderer_preferences.h" |
20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
21 #include "webkit/glue/webpreferences.h" | 21 #include "webkit/glue/webpreferences.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 void BalloonHost::NotifyDisconnect() { | 262 void BalloonHost::NotifyDisconnect() { |
263 if (!should_notify_on_disconnect_) | 263 if (!should_notify_on_disconnect_) |
264 return; | 264 return; |
265 | 265 |
266 should_notify_on_disconnect_ = false; | 266 should_notify_on_disconnect_ = false; |
267 NotificationService::current()->Notify( | 267 NotificationService::current()->Notify( |
268 NotificationType::NOTIFY_BALLOON_DISCONNECTED, | 268 NotificationType::NOTIFY_BALLOON_DISCONNECTED, |
269 Source<BalloonHost>(this), NotificationService::NoDetails()); | 269 Source<BalloonHost>(this), NotificationService::NoDetails()); |
270 } | 270 } |
OLD | NEW |