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

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: Responded to comments, prevents rph on privileged protocols. 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 3391c6b1c8cb272ec4a01dc206794dd9519800b8..571e3ef79d52dae6dcc901e58633cc2e4d24f272 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -83,7 +83,7 @@ class ProfileSyncFactory;
class ProfileSyncService;
class ProfileSyncService;
class PromoCounter;
-class PromoCounter;
+class ProtocolHandlerRegistry;
class SQLitePersistentCookieStore;
class SSLConfigServiceManager;
class SSLHostState;
@@ -413,6 +413,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;
@@ -477,6 +480,9 @@ class Profile {
// Start up service that gathers data from a web resource feed.
virtual void InitWebResources() = 0;
+ // Register URLRequestFactories for protocols registered with registerProtocolHandler.
jam 2011/02/15 18:48:39 nit: 80 character limit in chrome code
koz (OOO until 15th September) 2011/02/16 03:37:48 Done.
+ virtual void InitRegisteredProtocolHandlers() = 0;
+
// Returns the new tab page resource cache.
virtual NTPResourceCache* GetNTPResourceCache() = 0;

Powered by Google App Engine
This is Rietveld 408576698