Add a per-context "Handler" concept to ChromeV8Extension and
use it to update the chrome.app bidings.


Review URL: http://codereview.chromium.org/8218004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104975 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_tab_helper.h b/chrome/browser/extensions/extension_tab_helper.h
index 9e77970..5b2195f 100644
--- a/chrome/browser/extensions/extension_tab_helper.h
+++ b/chrome/browser/extensions/extension_tab_helper.h
@@ -105,9 +105,10 @@
   void OnInlineWebstoreInstall(int install_id,
                                const std::string& webstore_item_id,
                                const GURL& requestor_url);
-  void OnGetAppNotifyChannel(int request_id,
-                             const GURL& requestor_url,
-                             const std::string& client_id);
+  void OnGetAppNotifyChannel(const GURL& requestor_url,
+                             const std::string& client_id,
+                             int return_route_id,
+                             int callback_id);
   void OnRequest(const ExtensionHostMsg_Request_Params& params);
 
   // App extensions related methods:
@@ -126,9 +127,10 @@
                                       const std::string& error) OVERRIDE;
 
   // AppNotifyChannelSetup::Delegate.
-  virtual void AppNotifyChannelSetupComplete(int request_id,
-                                             const std::string& channel_id,
-                                             const std::string& error);
+  virtual void AppNotifyChannelSetupComplete(const std::string& channel_id,
+                                             const std::string& error,
+                                             int return_route_id,
+                                             int callback_id);
 
   // Data for app extensions ---------------------------------------------------