Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/browser/notifications/balloon_host.cc

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/notifications/balloon_host.h" 5 #include "chrome/browser/notifications/balloon_host.h"
6 #include "chrome/browser/extensions/extension_process_manager.h" 6 #include "chrome/browser/extensions/extension_process_manager.h"
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/notifications/balloon.h" 8 #include "chrome/browser/notifications/balloon.h"
9 #include "chrome/browser/notifications/notification.h" 9 #include "chrome/browser/notifications/notification.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/renderer_host/browser_render_process_host.h" 11 #include "chrome/browser/renderer_host/browser_render_process_host.h"
12 #include "chrome/browser/renderer_preferences_util.h" 12 #include "chrome/browser/renderer_preferences_util.h"
13 #include "chrome/browser/ui/browser_list.h" 13 #include "chrome/browser/ui/browser_list.h"
14 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" 14 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
15 #include "chrome/common/bindings_policy.h"
16 #include "chrome/common/render_messages.h" 15 #include "chrome/common/render_messages.h"
17 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
18 #include "content/browser/renderer_host/render_view_host.h" 17 #include "content/browser/renderer_host/render_view_host.h"
19 #include "content/browser/site_instance.h" 18 #include "content/browser/site_instance.h"
19 #include "content/common/bindings_policy.h"
20 #include "content/common/notification_service.h" 20 #include "content/common/notification_service.h"
21 #include "content/common/notification_source.h" 21 #include "content/common/notification_source.h"
22 #include "content/common/notification_type.h" 22 #include "content/common/notification_type.h"
23 #include "content/common/renderer_preferences.h" 23 #include "content/common/renderer_preferences.h"
24 #include "content/common/view_messages.h" 24 #include "content/common/view_messages.h"
25 #include "webkit/glue/webpreferences.h" 25 #include "webkit/glue/webpreferences.h"
26 26
27 BalloonHost::BalloonHost(Balloon* balloon) 27 BalloonHost::BalloonHost(Balloon* balloon)
28 : render_view_host_(NULL), 28 : render_view_host_(NULL),
29 balloon_(balloon), 29 balloon_(balloon),
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 void BalloonHost::NotifyDisconnect() { 261 void BalloonHost::NotifyDisconnect() {
262 if (!should_notify_on_disconnect_) 262 if (!should_notify_on_disconnect_)
263 return; 263 return;
264 264
265 should_notify_on_disconnect_ = false; 265 should_notify_on_disconnect_ = false;
266 NotificationService::current()->Notify( 266 NotificationService::current()->Notify(
267 NotificationType::NOTIFY_BALLOON_DISCONNECTED, 267 NotificationType::NOTIFY_BALLOON_DISCONNECTED,
268 Source<BalloonHost>(this), NotificationService::NoDetails()); 268 Source<BalloonHost>(this), NotificationService::NoDetails());
269 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698