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

Unified Diff: chrome/browser/profiles/profile.h

Issue 6410115: Adds navigator.registerProtocolHandler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Sync'd, disallow non-same origin rph, adds hostname to the infobar. Created 9 years, 10 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/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index b9815751fa288a714f5f9edf64e93187a107e233..71eaf258dcb30faaca2d529334a20eb70dd1b53f 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -87,7 +87,7 @@ class ProfileSyncFactory;
class ProfileSyncService;
class ProfileSyncService;
class PromoCounter;
-class PromoCounter;
+class ProtocolHandlerRegistry;
class SQLitePersistentCookieStore;
class SSLConfigServiceManager;
class SSLHostState;
@@ -417,6 +417,9 @@ class Profile {
// Returns the BookmarkModel, creating if not yet created.
virtual BookmarkModel* GetBookmarkModel() = 0;
+ // Returns the ProtocolHandlerRegistry, creating if not yet created.
+ virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0;
+
// Returns the Gaia Token Service, creating if not yet created.
virtual TokenService* GetTokenService() = 0;
@@ -481,6 +484,10 @@ class Profile {
// Start up service that gathers data from a promo resource feed.
virtual void InitPromoResources() = 0;
+ // Register URLRequestFactories for protocols registered with
+ // registerProtocolHandler.
+ virtual void InitRegisteredProtocolHandlers() = 0;
+
// Returns the new tab page resource cache.
virtual NTPResourceCache* GetNTPResourceCache() = 0;

Powered by Google App Engine
This is Rietveld 408576698