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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.h

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed broken include Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "components/domain_reliability/clear_mode.h" 12 #include "components/domain_reliability/clear_mode.h"
13 #include "content/public/browser/browser_context.h" 13 #include "content/public/browser/browser_context.h"
14 14
15 class ResourceContext; 15 class ResourceContext;
16 16
17 namespace net { 17 namespace net {
18 class URLRequestContextGetter; 18 class URLRequestContextGetter;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 class DownloadManagerDelegate; 22 class DownloadManagerDelegate;
23 class ResourceContext; 23 class ResourceContext;
24 class SSLHostStateDelegate;
24 } 25 }
25 26
26 class FakeProfile : public Profile { 27 class FakeProfile : public Profile {
27 public: 28 public:
28 explicit FakeProfile(const std::string& name); 29 explicit FakeProfile(const std::string& name);
29 FakeProfile(const std::string& name, const base::FilePath& path); 30 FakeProfile(const std::string& name, const base::FilePath& path);
30 31
31 // Profile overrides. 32 // Profile overrides.
32 virtual std::string GetProfileName() OVERRIDE; 33 virtual std::string GetProfileName() OVERRIDE;
33 virtual ProfileType GetProfileType() const OVERRIDE; 34 virtual ProfileType GetProfileType() const OVERRIDE;
34 virtual base::FilePath GetPath() const OVERRIDE; 35 virtual base::FilePath GetPath() const OVERRIDE;
35 virtual bool IsOffTheRecord() const OVERRIDE; 36 virtual bool IsOffTheRecord() const OVERRIDE;
36 virtual content::DownloadManagerDelegate* 37 virtual content::DownloadManagerDelegate*
37 GetDownloadManagerDelegate() OVERRIDE; 38 GetDownloadManagerDelegate() OVERRIDE;
38 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
39 int renderer_child_id) OVERRIDE; 40 int renderer_child_id) OVERRIDE;
40 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 41 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
41 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 42 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
42 int renderer_child_id) OVERRIDE; 43 int renderer_child_id) OVERRIDE;
43 virtual net::URLRequestContextGetter* 44 virtual net::URLRequestContextGetter*
44 GetMediaRequestContextForStoragePartition( 45 GetMediaRequestContextForStoragePartition(
45 const base::FilePath& partition_path, 46 const base::FilePath& partition_path,
46 bool in_memory) OVERRIDE; 47 bool in_memory) OVERRIDE;
47 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 48 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
48 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; 49 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
49 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 50 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
50 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; 51 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE;
52 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE;
51 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 53 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
52 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 54 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
53 virtual void DestroyOffTheRecordProfile() OVERRIDE; 55 virtual void DestroyOffTheRecordProfile() OVERRIDE;
54 virtual bool HasOffTheRecordProfile() OVERRIDE; 56 virtual bool HasOffTheRecordProfile() OVERRIDE;
55 virtual Profile* GetOriginalProfile() OVERRIDE; 57 virtual Profile* GetOriginalProfile() OVERRIDE;
56 virtual bool IsSupervised() OVERRIDE; 58 virtual bool IsSupervised() OVERRIDE;
57 virtual history::TopSites* GetTopSites() OVERRIDE; 59 virtual history::TopSites* GetTopSites() OVERRIDE;
58 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 60 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
59 virtual ExtensionSpecialStoragePolicy* 61 virtual ExtensionSpecialStoragePolicy*
60 GetExtensionSpecialStoragePolicy() OVERRIDE; 62 GetExtensionSpecialStoragePolicy() OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 96 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
95 virtual void SetExitType(ExitType exit_type) OVERRIDE; 97 virtual void SetExitType(ExitType exit_type) OVERRIDE;
96 virtual ExitType GetLastSessionExitType() OVERRIDE; 98 virtual ExitType GetLastSessionExitType() OVERRIDE;
97 99
98 private: 100 private:
99 std::string name_; 101 std::string name_;
100 base::FilePath path_; 102 base::FilePath path_;
101 }; 103 };
102 104
103 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 105 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698