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

Unified Diff: chrome/browser/ui/browser.h

Issue 7745027: Dispatch the following IPC messages in TabContents and handle them via the TabContentsDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
===================================================================
--- chrome/browser/ui/browser.h (revision 98271)
+++ chrome/browser/ui/browser.h (working copy)
@@ -650,6 +650,30 @@
static void EnumerateDirectoryHelper(TabContents* tab, int request_id,
const FilePath& path);
+ // Helper function to handle JS out of memory notifications
+ static void JSOutOfMemoryHelper(TabContents* tab);
+
+ // Helper function to register a protocol handler.
+ static void RegisterProtocolHandlerHelper(TabContents* tab,
+ const std::string& protocol,
+ const GURL& url,
+ const string16& title);
+
+ // Helper function to register an intent handler.
+ static void RegisterIntentHandlerHelper(TabContents* tab,
+ const string16& action,
+ const string16& type,
+ const string16& href,
+ const string16& title);
+
+ // Helper function to handle WebIntent notifications.
+ static void WebIntentDispatchHelper(TabContents* tab,
+ int routing_id,
+ const string16& action,
+ const string16& type,
+ const string16& data,
+ int intent_id);
+
// Calls ExecuteCommandWithDisposition with the given disposition.
void ExecuteCommandWithDisposition(int id, WindowOpenDisposition);
@@ -909,6 +933,22 @@
const FilePath& path) OVERRIDE;
virtual void ToggleFullscreenModeForTab(TabContents* tab,
bool enter_fullscreen) OVERRIDE;
+ virtual void JSOutOfMemory(TabContents* tab) OVERRIDE;
+ virtual void RegisterProtocolHandler(TabContents* tab,
+ const std::string& protocol,
+ const GURL& url,
+ const string16& title) OVERRIDE;
+ virtual void RegisterIntentHandler(TabContents* tab,
+ const string16& action,
+ const string16& type,
+ const string16& href,
+ const string16& title) OVERRIDE;
+ virtual void WebIntentDispatch(TabContents* tab,
+ int routing_id,
+ const string16& action,
+ const string16& type,
+ const string16& data,
+ int intent_id) OVERRIDE;
// Overridden from TabContentsWrapperDelegate:
virtual void OnDidGetApplicationInfo(TabContentsWrapper* source,
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698