OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; | 210 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; |
211 virtual ExtensionService* GetExtensionService() OVERRIDE; | 211 virtual ExtensionService* GetExtensionService() OVERRIDE; |
212 virtual extensions::UserScriptMaster* GetUserScriptMaster() OVERRIDE; | 212 virtual extensions::UserScriptMaster* GetUserScriptMaster() OVERRIDE; |
213 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 213 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
214 virtual extensions::EventRouter* GetExtensionEventRouter() OVERRIDE; | 214 virtual extensions::EventRouter* GetExtensionEventRouter() OVERRIDE; |
215 void SetExtensionSpecialStoragePolicy( | 215 void SetExtensionSpecialStoragePolicy( |
216 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 216 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
217 virtual ExtensionSpecialStoragePolicy* | 217 virtual ExtensionSpecialStoragePolicy* |
218 GetExtensionSpecialStoragePolicy() OVERRIDE; | 218 GetExtensionSpecialStoragePolicy() OVERRIDE; |
219 virtual FaviconService* GetFaviconService(ServiceAccessType access) OVERRIDE; | 219 virtual FaviconService* GetFaviconService(ServiceAccessType access) OVERRIDE; |
220 virtual HistoryService* GetHistoryService(ServiceAccessType access) OVERRIDE; | |
221 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | |
222 // The CookieMonster will only be returned if a Context has been created. Do | 220 // The CookieMonster will only be returned if a Context has been created. Do |
223 // this by calling CreateRequestContext(). See the note at GetRequestContext | 221 // this by calling CreateRequestContext(). See the note at GetRequestContext |
224 // for more information. | 222 // for more information. |
225 net::CookieMonster* GetCookieMonster(); | 223 net::CookieMonster* GetCookieMonster(); |
226 | 224 |
227 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() OVERRIDE; | 225 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() OVERRIDE; |
228 virtual policy::PolicyService* GetPolicyService() OVERRIDE; | 226 virtual policy::PolicyService* GetPolicyService() OVERRIDE; |
229 // Sets the profile's PrefService. If a pref service hasn't been explicitly | 227 // Sets the profile's PrefService. If a pref service hasn't been explicitly |
230 // set GetPrefs creates one, so normally you need not invoke this. If you need | 228 // set GetPrefs creates one, so normally you need not invoke this. If you need |
231 // to set a pref service you must invoke this before GetPrefs. | 229 // to set a pref service you must invoke this before GetPrefs. |
(...skipping 19 matching lines...) Expand all Loading... |
251 virtual void SetName(const std::wstring& name) {} | 249 virtual void SetName(const std::wstring& name) {} |
252 virtual std::wstring GetID(); | 250 virtual std::wstring GetID(); |
253 virtual void SetID(const std::wstring& id); | 251 virtual void SetID(const std::wstring& id); |
254 void set_last_session_exited_cleanly(bool value) { | 252 void set_last_session_exited_cleanly(bool value) { |
255 last_session_exited_cleanly_ = value; | 253 last_session_exited_cleanly_ = value; |
256 } | 254 } |
257 virtual void MergeResourceString(int message_id, | 255 virtual void MergeResourceString(int message_id, |
258 std::wstring* output_string) {} | 256 std::wstring* output_string) {} |
259 virtual void MergeResourceInteger(int message_id, int* output_value) {} | 257 virtual void MergeResourceInteger(int message_id, int* output_value) {} |
260 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} | 258 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} |
261 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | |
262 virtual bool IsSameProfile(Profile *p) OVERRIDE; | 259 virtual bool IsSameProfile(Profile *p) OVERRIDE; |
263 virtual base::Time GetStartTime() const OVERRIDE; | 260 virtual base::Time GetStartTime() const OVERRIDE; |
264 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 261 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
265 virtual void MarkAsCleanShutdown() OVERRIDE {} | 262 virtual void MarkAsCleanShutdown() OVERRIDE {} |
266 virtual void InitPromoResources() OVERRIDE {} | 263 virtual void InitPromoResources() OVERRIDE {} |
267 | 264 |
268 virtual FilePath last_selected_directory() OVERRIDE; | 265 virtual FilePath last_selected_directory() OVERRIDE; |
269 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 266 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
270 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 267 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
271 #if defined(OS_CHROMEOS) | 268 #if defined(OS_CHROMEOS) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // testing. | 363 // testing. |
367 ProfileDependencyManager* profile_dependency_manager_; | 364 ProfileDependencyManager* profile_dependency_manager_; |
368 | 365 |
369 scoped_ptr<content::MockResourceContext> resource_context_; | 366 scoped_ptr<content::MockResourceContext> resource_context_; |
370 | 367 |
371 // Weak pointer to a delegate for indicating that a profile was created. | 368 // Weak pointer to a delegate for indicating that a profile was created. |
372 Delegate* delegate_; | 369 Delegate* delegate_; |
373 }; | 370 }; |
374 | 371 |
375 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 372 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |