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

Side by Side Diff: content/public/test/test_browser_context.h

Issue 2898443002: Implement GetBrowsingDataRemoverDelegate() for BrowserContext subclasses (Closed)
Patch Set: More fixes. Created 3 years, 7 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 BackgroundSyncController* GetBackgroundSyncController() override; 55 BackgroundSyncController* GetBackgroundSyncController() override;
56 BrowsingDataRemoverDelegate* GetBrowsingDataRemoverDelegate() 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;
65 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition( 66 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition(
66 const base::FilePath& partition_path, 67 const base::FilePath& partition_path,
67 bool in_memory) override; 68 bool in_memory) override;
68 69
69 private: 70 private:
70 base::ScopedTempDir browser_context_dir_; 71 base::ScopedTempDir browser_context_dir_;
71 scoped_refptr<net::URLRequestContextGetter> request_context_; 72 scoped_refptr<net::URLRequestContextGetter> request_context_;
72 std::unique_ptr<MockResourceContext> resource_context_; 73 std::unique_ptr<MockResourceContext> resource_context_;
73 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 74 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
74 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; 75 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_;
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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698