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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/metrics/tracking_synchronizer.cc ('k') | chrome/browser/oom_priority_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/notifications/balloon.h" 6 #include "chrome/browser/notifications/balloon.h"
7 #include "chrome/browser/notifications/notification.h" 7 #include "chrome/browser/notifications/notification.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/renderer_preferences_util.h" 9 #include "chrome/browser/renderer_preferences_util.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
11 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" 11 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
12 #include "chrome/common/chrome_notification_types.h" 12 #include "chrome/common/chrome_notification_types.h"
13 #include "chrome/common/extensions/extension_messages.h" 13 #include "chrome/common/extensions/extension_messages.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/common/chrome_view_types.h" 16 #include "chrome/common/chrome_view_types.h"
17 #include "content/browser/renderer_host/browser_render_process_host.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"
20 #include "content/browser/tab_contents/tab_contents.h" 19 #include "content/browser/tab_contents/tab_contents.h"
21 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "content/public/browser/render_process_host.h"
23 #include "content/public/common/bindings_policy.h" 23 #include "content/public/common/bindings_policy.h"
24 #include "content/public/common/renderer_preferences.h" 24 #include "content/public/common/renderer_preferences.h"
25 #include "ipc/ipc_message.h" 25 #include "ipc/ipc_message.h"
26 #include "webkit/glue/webpreferences.h" 26 #include "webkit/glue/webpreferences.h"
27 27
28 BalloonHost::BalloonHost(Balloon* balloon) 28 BalloonHost::BalloonHost(Balloon* balloon)
29 : balloon_(balloon), 29 : balloon_(balloon),
30 initialized_(false), 30 initialized_(false),
31 should_notify_on_disconnect_(false), 31 should_notify_on_disconnect_(false),
32 enable_web_ui_(false), 32 enable_web_ui_(false),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 should_notify_on_disconnect_ = false; 144 should_notify_on_disconnect_ = false;
145 content::NotificationService::current()->Notify( 145 content::NotificationService::current()->Notify(
146 chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, 146 chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
147 content::Source<BalloonHost>(this), 147 content::Source<BalloonHost>(this),
148 content::NotificationService::NoDetails()); 148 content::NotificationService::NoDetails());
149 } 149 }
150 150
151 bool BalloonHost::IsRenderViewReady() const { 151 bool BalloonHost::IsRenderViewReady() const {
152 return should_notify_on_disconnect_; 152 return should_notify_on_disconnect_;
153 } 153 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/tracking_synchronizer.cc ('k') | chrome/browser/oom_priority_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698