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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 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"
(...skipping 17 matching lines...) Expand all
28 28
29 class FakeProfile : public Profile { 29 class FakeProfile : public Profile {
30 public: 30 public:
31 explicit FakeProfile(const std::string& name); 31 explicit FakeProfile(const std::string& name);
32 FakeProfile(const std::string& name, const base::FilePath& path); 32 FakeProfile(const std::string& name, const base::FilePath& path);
33 33
34 // Profile overrides. 34 // Profile overrides.
35 std::string GetProfileUserName() const override; 35 std::string GetProfileUserName() const override;
36 ProfileType GetProfileType() const override; 36 ProfileType GetProfileType() const override;
37 base::FilePath GetPath() const override; 37 base::FilePath GetPath() const override;
38 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 38 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
39 const base::FilePath& partition_path) override; 39 const base::FilePath& partition_path) override;
40 bool IsOffTheRecord() const override; 40 bool IsOffTheRecord() const override;
41 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 41 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
42 net::URLRequestContextGetter* GetMediaRequestContext() override; 42 net::URLRequestContextGetter* GetMediaRequestContext() override;
43 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 43 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
44 int renderer_child_id) override; 44 int renderer_child_id) override;
45 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 45 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
46 const base::FilePath& partition_path, 46 const base::FilePath& partition_path,
47 bool in_memory) override; 47 bool in_memory) override;
48 content::ResourceContext* GetResourceContext() override; 48 content::ResourceContext* GetResourceContext() override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool WasCreatedByVersionOrLater(const std::string& version) override; 97 bool WasCreatedByVersionOrLater(const std::string& version) override;
98 void SetExitType(ExitType exit_type) override; 98 void SetExitType(ExitType exit_type) override;
99 ExitType GetLastSessionExitType() override; 99 ExitType GetLastSessionExitType() override;
100 100
101 private: 101 private:
102 std::string name_; 102 std::string name_;
103 base::FilePath path_; 103 base::FilePath path_;
104 }; 104 };
105 105
106 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 106 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/browser/ui/app_list/test/fake_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698