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

Unified Diff: chrome/renderer/extensions/extension_helper.h

Issue 8194005: Relanding: Add js api for hosted/packaged apps to request notification authorization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/renderer/extensions/extension_helper.h
diff --git a/chrome/renderer/extensions/extension_helper.h b/chrome/renderer/extensions/extension_helper.h
index ef7f4aeb28d9d4c30c87708849d4d4ec88d08479..1086a31f512db7292f736868d9c1d5e96019c870 100644
--- a/chrome/renderer/extensions/extension_helper.h
+++ b/chrome/renderer/extensions/extension_helper.h
@@ -46,6 +46,12 @@ class ExtensionHelper
std::string webstore_item_id,
GURL requestor_url);
+ // Starts fetching a channel id for server pushed notifications. The result
+ // comes back via OnGetAppNotifyChannelResponse.
+ void GetAppNotifyChannel(int request_id,
+ const GURL& requestor_url,
+ const std::string& client_id);
+
int browser_window_id() const { return browser_window_id_; }
content::ViewType::Type view_type() const { return view_type_; }
@@ -75,6 +81,8 @@ class ExtensionHelper
void OnUpdateBrowserWindowId(int window_id);
void OnInlineWebstoreInstallResponse(
int install_id, bool success, const std::string& error);
+ void OnGetAppNotifyChannelResponse(
+ int request_id, const std::string& channel_id, const std::string& error);
// Callback triggered when we finish downloading the application definition
// file.
« no previous file with comments | « chrome/renderer/extensions/chrome_webstore_bindings.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698