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

Side by Side Diff: content/public/test/test_browser_context.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 (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 CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 45 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
46 const base::FilePath& partition_path) override; 46 const base::FilePath& partition_path) override;
47 bool IsOffTheRecord() const override; 47 bool IsOffTheRecord() const override;
48 DownloadManagerDelegate* GetDownloadManagerDelegate() override; 48 DownloadManagerDelegate* GetDownloadManagerDelegate() override;
49 ResourceContext* GetResourceContext() override; 49 ResourceContext* GetResourceContext() override;
50 BrowserPluginGuestManager* GetGuestManager() override; 50 BrowserPluginGuestManager* GetGuestManager() override;
51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
52 PushMessagingService* GetPushMessagingService() override; 52 PushMessagingService* GetPushMessagingService() override;
53 SSLHostStateDelegate* GetSSLHostStateDelegate() override; 53 SSLHostStateDelegate* GetSSLHostStateDelegate() override;
54 PermissionManager* GetPermissionManager() override; 54 PermissionManager* GetPermissionManager() override;
55 BackgroundFetchClient* GetBackgroundFetchClient() override;
55 BackgroundSyncController* GetBackgroundSyncController() override; 56 BackgroundSyncController* GetBackgroundSyncController() override;
56 net::URLRequestContextGetter* CreateRequestContext( 57 net::URLRequestContextGetter* CreateRequestContext(
57 ProtocolHandlerMap* protocol_handlers, 58 ProtocolHandlerMap* protocol_handlers,
58 URLRequestInterceptorScopedVector request_interceptors) override; 59 URLRequestInterceptorScopedVector request_interceptors) override;
59 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 60 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
60 const base::FilePath& partition_path, 61 const base::FilePath& partition_path,
61 bool in_memory, 62 bool in_memory,
62 ProtocolHandlerMap* protocol_handlers, 63 ProtocolHandlerMap* protocol_handlers,
63 URLRequestInterceptorScopedVector request_interceptors) override; 64 URLRequestInterceptorScopedVector request_interceptors) override;
64 net::URLRequestContextGetter* CreateMediaRequestContext() override; 65 net::URLRequestContextGetter* CreateMediaRequestContext() override;
(...skipping 10 matching lines...) Expand all
75 std::unique_ptr<PermissionManager> permission_manager_; 76 std::unique_ptr<PermissionManager> permission_manager_;
76 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; 77 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_;
77 bool is_off_the_record_ = false; 78 bool is_off_the_record_ = false;
78 79
79 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); 80 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
80 }; 81 };
81 82
82 } // namespace content 83 } // namespace content
83 84
84 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 85 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698