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

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

Issue 18796007: Content API changes to integrate base/graph. (Closed) Base URL: marinoni.mon:/usr/local/google/src/chromium/src@base_graph_review
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 285 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
286 286
287 protected: 287 protected:
288 base::Time start_time_; 288 base::Time start_time_;
289 scoped_ptr<PrefServiceSyncable> prefs_; 289 scoped_ptr<PrefServiceSyncable> prefs_;
290 // ref only for right type, lifecycle is managed by prefs_ 290 // ref only for right type, lifecycle is managed by prefs_
291 TestingPrefServiceSyncable* testing_prefs_; 291 TestingPrefServiceSyncable* testing_prefs_;
292 292
293 private: 293 private:
294 virtual void VisitDependencyManager(
295 scoped_ptr<content::BrowserContextDependencyVisitor> visitor) OVERRIDE;
296 virtual graph::DependencyManagerInstance* GetDependencyManager() OVERRIDE;
297
294 // Creates a temporary directory for use by this profile. 298 // Creates a temporary directory for use by this profile.
295 void CreateTempProfileDir(); 299 void CreateTempProfileDir();
296 300
297 // Common initialization between the two constructors. 301 // Common initialization between the two constructors.
298 void Init(); 302 void Init();
299 303
300 // Finishes initialization when a profile is created asynchronously. 304 // Finishes initialization when a profile is created asynchronously.
301 void FinishInit(); 305 void FinishInit();
302 306
303 // Creates a TestingPrefService and associates it with the TestingProfile. 307 // Creates a TestingPrefService and associates it with the TestingProfile.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 351
348 scoped_ptr<content::MockResourceContext> resource_context_; 352 scoped_ptr<content::MockResourceContext> resource_context_;
349 353
350 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; 354 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_;
351 355
352 // Weak pointer to a delegate for indicating that a profile was created. 356 // Weak pointer to a delegate for indicating that a profile was created.
353 Delegate* delegate_; 357 Delegate* delegate_;
354 }; 358 };
355 359
356 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 360 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698