diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 18:11:40 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 18:11:40 +0000 |
commit | d75db806671e165128bfe89834c845283a3f283f (patch) | |
tree | 689b4a2c2067eaa5d18acc4b7e4a172d9155b372 /chrome/browser/notifications | |
parent | 3fe952923afca7b464d7d5a427cffafe2d71959e (diff) | |
download | chromium_src-d75db806671e165128bfe89834c845283a3f283f.zip chromium_src-d75db806671e165128bfe89834c845283a3f283f.tar.gz chromium_src-d75db806671e165128bfe89834c845283a3f283f.tar.bz2 |
Header dependency reduction for notification headers.
BUG=None
TEST=Build succeeds.
Review URL: http://codereview.chromium.org/4535003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/balloon_host.cc | 6 | ||||
-rw-r--r-- | chrome/browser/notifications/balloon_host.h | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc index ecb52cd..04f0b89 100644 --- a/chrome/browser/notifications/balloon_host.cc +++ b/chrome/browser/notifications/balloon_host.cc @@ -7,6 +7,7 @@ #include "chrome/browser/browser_list.h" #include "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/notifications/balloon.h" +#include "chrome/browser/notifications/notification.h" #include "chrome/browser/profile.h" #include "chrome/browser/renderer_host/render_view_host.h" #include "chrome/browser/renderer_host/site_instance.h" @@ -17,6 +18,7 @@ #include "chrome/common/render_messages.h" #include "chrome/common/renderer_preferences.h" #include "chrome/common/url_constants.h" +#include "webkit/glue/webpreferences.h" BalloonHost::BalloonHost(Balloon* balloon) : render_view_host_(NULL), @@ -59,6 +61,10 @@ gfx::NativeView BalloonHost::GetNativeViewOfHost() { TabContents* BalloonHost::associated_tab_contents() const { return NULL; } +const string16& BalloonHost::GetSource() const { + return balloon_->notification().display_source(); +} + WebPreferences BalloonHost::GetWebkitPrefs() { WebPreferences prefs; prefs.allow_scripts_to_close_windows = true; diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h index 09d54ea..4e51eba 100644 --- a/chrome/browser/notifications/balloon_host.h +++ b/chrome/browser/notifications/balloon_host.h @@ -10,17 +10,15 @@ #include <vector> #include "chrome/browser/extensions/extension_function_dispatcher.h" -#include "chrome/browser/notifications/balloon.h" -#include "chrome/browser/notifications/notification.h" #include "chrome/browser/renderer_host/render_view_host_delegate.h" -#include "chrome/browser/renderer_host/site_instance.h" #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" -#include "chrome/common/extensions/extension_constants.h" -#include "chrome/common/renderer_preferences.h" -#include "webkit/glue/webpreferences.h" +class Balloon; class Browser; class Profile; +class SiteInstance; +struct RendererPreferences; +struct WebPreferences; class BalloonHost : public RenderViewHostDelegate, public RenderViewHostDelegate::View, @@ -41,9 +39,7 @@ class BalloonHost : public RenderViewHostDelegate, RenderViewHost* render_view_host() const { return render_view_host_; } - const string16& GetSource() const { - return balloon_->notification().display_source(); - } + const string16& GetSource() const; // RenderViewHostDelegate overrides. virtual WebPreferences GetWebkitPrefs(); |