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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to review comments. Fit and finish. Created 8 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 virtual void MergeResourceString(int message_id, 206 virtual void MergeResourceString(int message_id,
207 std::wstring* output_string) {} 207 std::wstring* output_string) {}
208 virtual void MergeResourceInteger(int message_id, int* output_value) {} 208 virtual void MergeResourceInteger(int message_id, int* output_value) {}
209 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} 209 virtual void MergeResourceBoolean(int message_id, bool* output_value) {}
210 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; 210 virtual BookmarkModel* GetBookmarkModel() OVERRIDE;
211 virtual bool IsSameProfile(Profile *p) OVERRIDE; 211 virtual bool IsSameProfile(Profile *p) OVERRIDE;
212 virtual base::Time GetStartTime() const OVERRIDE; 212 virtual base::Time GetStartTime() const OVERRIDE;
213 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 213 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
214 virtual void MarkAsCleanShutdown() OVERRIDE {} 214 virtual void MarkAsCleanShutdown() OVERRIDE {}
215 virtual void InitPromoResources() OVERRIDE {} 215 virtual void InitPromoResources() OVERRIDE {}
216 virtual void InitRegisteredProtocolHandlers() OVERRIDE {}
217 216
218 virtual FilePath last_selected_directory() OVERRIDE; 217 virtual FilePath last_selected_directory() OVERRIDE;
219 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 218 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
220 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 219 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
221 #if defined(OS_CHROMEOS) 220 #if defined(OS_CHROMEOS)
222 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { 221 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE {
223 } 222 }
224 virtual void InitChromeOSPreferences() OVERRIDE { 223 virtual void InitChromeOSPreferences() OVERRIDE {
225 } 224 }
226 virtual void ChangeAppLocale(const std::string&, 225 virtual void ChangeAppLocale(const std::string&,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void CreateTestingPrefService(); 262 void CreateTestingPrefService();
264 263
265 virtual base::Callback<ChromeURLDataManagerBackend*(void)> 264 virtual base::Callback<ChromeURLDataManagerBackend*(void)>
266 GetChromeURLDataManagerBackendGetter() const OVERRIDE; 265 GetChromeURLDataManagerBackendGetter() const OVERRIDE;
267 266
268 // The favicon service. Only created if CreateFaviconService is invoked. 267 // The favicon service. Only created if CreateFaviconService is invoked.
269 scoped_ptr<FaviconService> favicon_service_; 268 scoped_ptr<FaviconService> favicon_service_;
270 269
271 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry 270 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry
272 // is invoked. 271 // is invoked.
273 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; 272 ProtocolHandlerRegistry* protocol_handler_registry_;
274 273
275 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier 274 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier
276 // is invoked. 275 // is invoked.
277 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 276 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
278 277
279 // The policy service. Lazily created as a stub. 278 // The policy service. Lazily created as a stub.
280 scoped_ptr<policy::PolicyService> policy_service_; 279 scoped_ptr<policy::PolicyService> policy_service_;
281 280
282 // Internally, this is a TestURLRequestContextGetter that creates a dummy 281 // Internally, this is a TestURLRequestContextGetter that creates a dummy
283 // request context. Currently, only the CookieMonster is hooked up. 282 // request context. Currently, only the CookieMonster is hooked up.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // testing. 317 // testing.
319 ProfileDependencyManager* profile_dependency_manager_; 318 ProfileDependencyManager* profile_dependency_manager_;
320 319
321 scoped_ptr<content::MockResourceContext> resource_context_; 320 scoped_ptr<content::MockResourceContext> resource_context_;
322 321
323 // Weak pointer to a delegate for indicating that a profile was created. 322 // Weak pointer to a delegate for indicating that a profile was created.
324 Delegate* delegate_; 323 Delegate* delegate_;
325 }; 324 };
326 325
327 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 326 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698