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

Unified Diff: chrome/renderer/render_view.h

Issue 194079: renderer process notifications support (Closed)
Patch Set: last change for code review Created 11 years, 3 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
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index fd12078a3d7acc1a362dfd088a59b56996b5e755..931b2aa7b4e496dbecf04532cd4857cd698a3ee0 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -29,6 +29,7 @@
#include "chrome/renderer/dom_ui_bindings.h"
#include "chrome/renderer/extensions/extension_process_bindings.h"
#include "chrome/renderer/external_host_bindings.h"
+#include "chrome/renderer/notification_provider.h"
#include "chrome/renderer/render_widget.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -271,6 +272,10 @@ class RenderView : public RenderWidget,
virtual int historyForwardListCount();
virtual void didAddHistoryItem();
+ virtual WebKit::WebNotificationPresenter* GetNotificationPresenter() {
+ return notification_provider_.get();
+ }
+
// WebKit::WebWidgetClient
// Most methods are handled by RenderWidget.
virtual void show(WebKit::WebNavigationPolicy policy);
@@ -899,6 +904,9 @@ class RenderView : public RenderWidget,
// The text selection the last time DidChangeSelection got called.
std::string last_selection_;
+ // Hopds a reference to the service which provides desktop notifications.
+ scoped_refptr<NotificationProvider> notification_provider_;
+
// Set to true if request for capturing page text has been made.
bool determine_page_text_after_loading_stops_;

Powered by Google App Engine
This is Rietveld 408576698