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

Side by Side Diff: blimp/engine/common/blimp_browser_context.h

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_ 5 #ifndef BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_
6 #define BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_ 6 #define BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const base::FilePath& partition_path, 44 const base::FilePath& partition_path,
45 bool in_memory) override; 45 bool in_memory) override;
46 content::ResourceContext* GetResourceContext() override; 46 content::ResourceContext* GetResourceContext() override;
47 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 47 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
48 content::BrowserPluginGuestManager* GetGuestManager() override; 48 content::BrowserPluginGuestManager* GetGuestManager() override;
49 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 49 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
50 content::PushMessagingService* GetPushMessagingService() override; 50 content::PushMessagingService* GetPushMessagingService() override;
51 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 51 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
52 content::PermissionManager* GetPermissionManager() override; 52 content::PermissionManager* GetPermissionManager() override;
53 content::BackgroundSyncController* GetBackgroundSyncController() override; 53 content::BackgroundSyncController* GetBackgroundSyncController() override;
54 54 net::URLRequestContextGetter* CreateRequestContext(
55 // The content of |protocol_handlers| is swapped into the returned instance.
56 // Caller should take a reference to the returned instance via scoped_refptr.
57 const scoped_refptr<BlimpURLRequestContextGetter>& CreateRequestContext(
58 content::ProtocolHandlerMap* protocol_handlers, 55 content::ProtocolHandlerMap* protocol_handlers,
59 content::URLRequestInterceptorScopedVector request_interceptors); 56 content::URLRequestInterceptorScopedVector request_interceptors) override;
57 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
58 const base::FilePath& partition_path,
59 bool in_memory,
60 content::ProtocolHandlerMap* protocol_handlers,
61 content::URLRequestInterceptorScopedVector request_interceptors) override;
60 62
61 private: 63 private:
62 // Performs initialization of the BlimpBrowserContext while IO is still 64 // Performs initialization of the BlimpBrowserContext while IO is still
63 // allowed on the current thread. 65 // allowed on the current thread.
64 void InitWhileIOAllowed(); 66 void InitWhileIOAllowed();
65 67
66 std::unique_ptr<BlimpResourceContext> resource_context_; 68 std::unique_ptr<BlimpResourceContext> resource_context_;
67 bool ignore_certificate_errors_; 69 bool ignore_certificate_errors_;
68 std::unique_ptr<content::PermissionManager> permission_manager_; 70 std::unique_ptr<content::PermissionManager> permission_manager_;
69 bool off_the_record_; 71 bool off_the_record_;
70 net::NetLog* net_log_; 72 net::NetLog* net_log_;
71 base::FilePath path_; 73 base::FilePath path_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserContext); 75 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserContext);
74 }; 76 };
75 77
76 } // namespace engine 78 } // namespace engine
77 } // namespace blimp 79 } // namespace blimp
78 80
79 #endif // BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_ 81 #endif // BLIMP_ENGINE_COMMON_BLIMP_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698