diff options
Diffstat (limited to 'content/renderer/notification_provider.cc')
-rw-r--r-- | content/renderer/notification_provider.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/content/renderer/notification_provider.cc b/content/renderer/notification_provider.cc index c4de9d1..01a533b 100644 --- a/content/renderer/notification_provider.cc +++ b/content/renderer/notification_provider.cc @@ -22,8 +22,11 @@ using WebKit::WebSecurityOrigin; using WebKit::WebString; using WebKit::WebURL; +namespace content { + + NotificationProvider::NotificationProvider(RenderViewImpl* render_view) - : content::RenderViewObserver(render_view) { + : RenderViewObserver(render_view) { } NotificationProvider::~NotificationProvider() { @@ -99,7 +102,7 @@ bool NotificationProvider::OnMessageReceived(const IPC::Message& message) { bool NotificationProvider::ShowHTML(const WebNotification& notification, int id) { DCHECK(notification.isHTML()); - content::ShowDesktopNotificationHostMsgParams params; + ShowDesktopNotificationHostMsgParams params; WebDocument document = render_view()->GetWebView()->mainFrame()->document(); params.origin = GURL(document.securityOrigin().toString()); params.is_html = true; @@ -112,7 +115,7 @@ bool NotificationProvider::ShowHTML(const WebNotification& notification, bool NotificationProvider::ShowText(const WebNotification& notification, int id) { DCHECK(!notification.isHTML()); - content::ShowDesktopNotificationHostMsgParams params; + ShowDesktopNotificationHostMsgParams params; params.is_html = false; WebDocument document = render_view()->GetWebView()->mainFrame()->document(); params.origin = GURL(document.securityOrigin().toString()); @@ -173,3 +176,5 @@ void NotificationProvider::OnPermissionRequestComplete(int id) { void NotificationProvider::OnNavigate() { manager_.Clear(); } + +} // namespace content |