diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 00:48:58 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 00:48:58 +0000 |
commit | de1b7bc3689b13c0894cab567e909b8c8fc33dcb (patch) | |
tree | 29ca71514a73e8d08a54f3bf98749d8ee4fb87a6 /chrome/renderer/extensions/extension_helper.h | |
parent | dbd5391a3f7bd716f17f59a0028d002842d54f7b (diff) | |
download | chromium_src-de1b7bc3689b13c0894cab567e909b8c8fc33dcb.zip chromium_src-de1b7bc3689b13c0894cab567e909b8c8fc33dcb.tar.gz chromium_src-de1b7bc3689b13c0894cab567e909b8c8fc33dcb.tar.bz2 |
Add js api for hosted/packaged apps to request notification authorization
BUG=98145
TEST=None (more pieces will be landing that will make it testable)
Review URL: http://codereview.chromium.org/8113006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/extension_helper.h')
-rw-r--r-- | chrome/renderer/extensions/extension_helper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/extension_helper.h b/chrome/renderer/extensions/extension_helper.h index ef7f4ae..1086a31 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. |