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

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

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 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 27 matching lines...) Expand all
38 std::unique_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 content::ResourceContext* GetResourceContext() override; 42 content::ResourceContext* GetResourceContext() override;
43 content::BrowserPluginGuestManager* GetGuestManager() override; 43 content::BrowserPluginGuestManager* GetGuestManager() override;
44 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 44 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
45 content::PushMessagingService* GetPushMessagingService() override; 45 content::PushMessagingService* GetPushMessagingService() override;
46 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 46 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
47 content::PermissionManager* GetPermissionManager() override; 47 content::PermissionManager* GetPermissionManager() override;
48 content::BackgroundFetchClient* GetBackgroundFetchClient() override;
48 content::BackgroundSyncController* GetBackgroundSyncController() override; 49 content::BackgroundSyncController* GetBackgroundSyncController() override;
49 net::URLRequestContextGetter* CreateRequestContext( 50 net::URLRequestContextGetter* CreateRequestContext(
50 content::ProtocolHandlerMap* protocol_handlers, 51 content::ProtocolHandlerMap* protocol_handlers,
51 content::URLRequestInterceptorScopedVector request_interceptors) override; 52 content::URLRequestInterceptorScopedVector request_interceptors) override;
52 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 53 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
53 const base::FilePath& partition_path, 54 const base::FilePath& partition_path,
54 bool in_memory, 55 bool in_memory,
55 content::ProtocolHandlerMap* protocol_handlers, 56 content::ProtocolHandlerMap* protocol_handlers,
56 content::URLRequestInterceptorScopedVector request_interceptors) override; 57 content::URLRequestInterceptorScopedVector request_interceptors) override;
57 net::URLRequestContextGetter* CreateMediaRequestContext() override; 58 net::URLRequestContextGetter* CreateMediaRequestContext() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool WasCreatedByVersionOrLater(const std::string& version) override; 93 bool WasCreatedByVersionOrLater(const std::string& version) override;
93 void SetExitType(ExitType exit_type) override; 94 void SetExitType(ExitType exit_type) override;
94 ExitType GetLastSessionExitType() override; 95 ExitType GetLastSessionExitType() override;
95 96
96 private: 97 private:
97 std::string name_; 98 std::string name_;
98 base::FilePath path_; 99 base::FilePath path_;
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 102 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698