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

Unified Diff: chrome/test/testing_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/test/testing_profile.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 9d41ae1a1572a64614ee3156efc4e7e3ae62098c..822acb917566f27ebf1d5eea1fe107a2d62e8863 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -84,6 +84,10 @@ class TestingProfile : public Profile {
// AutocompleteClassifier is NULL.
void CreateAutocompleteClassifier();
+ // Creates a ProtocolHandlerRegistry. If not invoked the protocol handler
+ // registry is NULL.
+ void CreateProtocolHandlerRegistry();
+
// Creates the webdata service. If |delete_file| is true, the webdata file is
// deleted first, then the WebDataService is created. As TestingProfile
// deletes the directory containing the files used by WebDataService, this
@@ -230,6 +234,7 @@ class TestingProfile : public Profile {
virtual bool IsSameProfile(Profile *p);
virtual base::Time GetStartTime() const;
virtual TabRestoreService* GetTabRestoreService();
+ virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry();
virtual void ResetTabRestoreService() {}
virtual SpellCheckHost* GetSpellCheckHost();
virtual void ReinitializeSpellCheckHost(bool force) { }
@@ -238,6 +243,7 @@ class TestingProfile : public Profile {
virtual void MarkAsCleanShutdown() {}
virtual void InitExtensions() {}
virtual void InitPromoResources() {}
+ virtual void InitRegisteredProtocolHandlers() {}
virtual NTPResourceCache* GetNTPResourceCache();
virtual DesktopNotificationService* GetDesktopNotificationService();
@@ -305,6 +311,10 @@ class TestingProfile : public Profile {
// The BookmarkModel. Only created if CreateBookmarkModel is invoked.
scoped_ptr<BookmarkModel> bookmark_bar_model_;
+ // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry
+ // is invoked.
+ scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
+
// The TokenService. Created by CreateTokenService. Filled with dummy data.
scoped_ptr<TokenService> token_service_;

Powered by Google App Engine
This is Rietveld 408576698