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

Unified Diff: content/renderer/notification_provider.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/notification_provider.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/notification_provider.cc
===================================================================
--- content/renderer/notification_provider.cc (revision 163045)
+++ content/renderer/notification_provider.cc (working copy)
@@ -22,8 +22,11 @@
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::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::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::OnNavigate() {
manager_.Clear();
}
+
+} // namespace content
« no previous file with comments | « content/renderer/notification_provider.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698