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

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

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('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 15 matching lines...) Expand all
26 TestBrowserContext(); 26 TestBrowserContext();
27 ~TestBrowserContext() override; 27 ~TestBrowserContext() override;
28 28
29 // Takes ownership of the temporary directory so that it's not deleted when 29 // Takes ownership of the temporary directory so that it's not deleted when
30 // this object is destructed. 30 // this object is destructed.
31 base::FilePath TakePath(); 31 base::FilePath TakePath();
32 32
33 void SetSpecialStoragePolicy(storage::SpecialStoragePolicy* policy); 33 void SetSpecialStoragePolicy(storage::SpecialStoragePolicy* policy);
34 void SetPermissionManager( 34 void SetPermissionManager(
35 std::unique_ptr<PermissionManager> permission_manager); 35 std::unique_ptr<PermissionManager> permission_manager);
36 net::URLRequestContextGetter* GetRequestContext();
36 37
37 base::FilePath GetPath() const override; 38 base::FilePath GetPath() const override;
38 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 39 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
39 const base::FilePath& partition_path) override; 40 const base::FilePath& partition_path) override;
40 bool IsOffTheRecord() const override; 41 bool IsOffTheRecord() const override;
41 DownloadManagerDelegate* GetDownloadManagerDelegate() override; 42 DownloadManagerDelegate* GetDownloadManagerDelegate() override;
42 net::URLRequestContextGetter* GetRequestContext() override;
43 net::URLRequestContextGetter* GetMediaRequestContext() override; 43 net::URLRequestContextGetter* GetMediaRequestContext() override;
44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
45 int renderer_child_id) override; 45 int renderer_child_id) override;
46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
47 const base::FilePath& partition_path, 47 const base::FilePath& partition_path,
48 bool in_memory) override; 48 bool in_memory) 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;
(...skipping 17 matching lines...) Expand all
70 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; 70 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_;
71 std::unique_ptr<PermissionManager> permission_manager_; 71 std::unique_ptr<PermissionManager> permission_manager_;
72 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; 72 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); 74 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 79 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/public/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698