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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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) 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/notifications/balloon_host.h" 5 #include "chrome/browser/notifications/balloon_host.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/extensions/extension_web_contents_observer.h" 8 #include "chrome/browser/extensions/extension_web_contents_observer.h"
9 #include "chrome/browser/notifications/balloon.h" 9 #include "chrome/browser/notifications/balloon.h"
10 #include "chrome/browser/notifications/balloon_collection_impl.h" 10 #include "chrome/browser/notifications/balloon_collection_impl.h"
11 #include "chrome/browser/notifications/notification.h" 11 #include "chrome/browser/notifications/notification.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/renderer_preferences_util.h" 13 #include "chrome/browser/renderer_preferences_util.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/browser_finder.h" 15 #include "chrome/browser/ui/browser_finder.h"
16 #include "chrome/browser/ui/browser_tabstrip.h" 16 #include "chrome/browser/ui/browser_tabstrip.h"
17 #include "chrome/browser/ui/host_desktop.h" 17 #include "chrome/browser/ui/host_desktop.h"
18 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 18 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
19 #include "chrome/common/extensions/extension_messages.h"
20 #include "chrome/common/render_messages.h" 19 #include "chrome/common/render_messages.h"
21 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
22 #include "content/public/browser/navigation_controller.h" 21 #include "content/public/browser/navigation_controller.h"
23 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
24 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
25 #include "content/public/browser/render_process_host.h" 24 #include "content/public/browser/render_process_host.h"
26 #include "content/public/browser/render_view_host.h" 25 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/site_instance.h" 26 #include "content/public/browser/site_instance.h"
28 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
29 #include "content/public/common/bindings_policy.h" 28 #include "content/public/common/bindings_policy.h"
30 #include "content/public/common/renderer_preferences.h" 29 #include "content/public/common/renderer_preferences.h"
31 #include "extensions/browser/view_type_utils.h" 30 #include "extensions/browser/view_type_utils.h"
31 #include "extensions/common/extension_messages.h"
32 #include "ipc/ipc_message.h" 32 #include "ipc/ipc_message.h"
33 33
34 using content::SiteInstance; 34 using content::SiteInstance;
35 using content::WebContents; 35 using content::WebContents;
36 36
37 BalloonHost::BalloonHost(Balloon* balloon) 37 BalloonHost::BalloonHost(Balloon* balloon)
38 : balloon_(balloon), 38 : balloon_(balloon),
39 initialized_(false), 39 initialized_(false),
40 should_notify_on_disconnect_(false), 40 should_notify_on_disconnect_(false),
41 enable_web_ui_(false), 41 enable_web_ui_(false),
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 should_notify_on_disconnect_ = false; 172 should_notify_on_disconnect_ = false;
173 content::NotificationService::current()->Notify( 173 content::NotificationService::current()->Notify(
174 chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, 174 chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
175 content::Source<BalloonHost>(this), 175 content::Source<BalloonHost>(this),
176 content::NotificationService::NoDetails()); 176 content::NotificationService::NoDetails());
177 } 177 }
178 178
179 bool BalloonHost::IsRenderViewReady() const { 179 bool BalloonHost::IsRenderViewReady() const {
180 return should_notify_on_disconnect_; 180 return should_notify_on_disconnect_;
181 } 181 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_master.h ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698