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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; patch for landing. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "components/domain_reliability/clear_mode.h" 14 #include "components/domain_reliability/clear_mode.h"
15 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 15 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
16 16
17 namespace content { 17 namespace content {
18 class MockResourceContext; 18 class MockResourceContext;
19 class SSLHostStateDelegate; 19 class SSLHostStateDelegate;
20 class ZoomLevelDelegate;
20 } 21 }
21 22
22 namespace history { 23 namespace history {
23 class TopSites; 24 class TopSites;
24 } 25 }
25 26
26 namespace net { 27 namespace net {
27 class CookieMonster; 28 class CookieMonster;
28 class URLRequestContextGetter; 29 class URLRequestContextGetter;
29 } 30 }
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 215
215 TestingPrefServiceSyncable* GetTestingPrefService(); 216 TestingPrefServiceSyncable* GetTestingPrefService();
216 217
217 // Called on the parent of an incognito |profile|. Usually called from the 218 // Called on the parent of an incognito |profile|. Usually called from the
218 // constructor of an incognito TestingProfile, but can also be used by tests 219 // constructor of an incognito TestingProfile, but can also be used by tests
219 // to provide an OffTheRecordProfileImpl instance. 220 // to provide an OffTheRecordProfileImpl instance.
220 void SetOffTheRecordProfile(scoped_ptr<Profile> profile); 221 void SetOffTheRecordProfile(scoped_ptr<Profile> profile);
221 222
222 // content::BrowserContext 223 // content::BrowserContext
223 base::FilePath GetPath() const override; 224 base::FilePath GetPath() const override;
225 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
226 const base::FilePath& partition_path) override;
224 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; 227 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
225 bool IsOffTheRecord() const override; 228 bool IsOffTheRecord() const override;
226 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 229 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
227 net::URLRequestContextGetter* GetRequestContext() override; 230 net::URLRequestContextGetter* GetRequestContext() override;
228 net::URLRequestContextGetter* CreateRequestContext( 231 net::URLRequestContextGetter* CreateRequestContext(
229 content::ProtocolHandlerMap* protocol_handlers, 232 content::ProtocolHandlerMap* protocol_handlers,
230 content::URLRequestInterceptorScopedVector request_interceptors) override; 233 content::URLRequestInterceptorScopedVector request_interceptors) override;
231 net::URLRequestContextGetter* GetRequestContextForRenderProcess( 234 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
232 int renderer_child_id) override; 235 int renderer_child_id) override;
233 content::ResourceContext* GetResourceContext() override; 236 content::ResourceContext* GetResourceContext() override;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 415
413 // Weak pointer to a delegate for indicating that a profile was created. 416 // Weak pointer to a delegate for indicating that a profile was created.
414 Delegate* delegate_; 417 Delegate* delegate_;
415 418
416 std::string profile_name_; 419 std::string profile_name_;
417 420
418 scoped_ptr<policy::PolicyService> policy_service_; 421 scoped_ptr<policy::PolicyService> policy_service_;
419 }; 422 };
420 423
421 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 424 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698