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

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)
Patch Set: X11 is bonkers Created 3 years, 5 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_BROWSER_STORAGE_PARTITION_IMPL_H_ 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void OverrideQuotaManagerForTesting( 67 void OverrideQuotaManagerForTesting(
68 storage::QuotaManager* quota_manager); 68 storage::QuotaManager* quota_manager);
69 void OverrideSpecialStoragePolicyForTesting( 69 void OverrideSpecialStoragePolicyForTesting(
70 storage::SpecialStoragePolicy* special_storage_policy); 70 storage::SpecialStoragePolicy* special_storage_policy);
71 71
72 // StoragePartition interface. 72 // StoragePartition interface.
73 base::FilePath GetPath() override; 73 base::FilePath GetPath() override;
74 net::URLRequestContextGetter* GetURLRequestContext() override; 74 net::URLRequestContextGetter* GetURLRequestContext() override;
75 net::URLRequestContextGetter* GetMediaURLRequestContext() override; 75 net::URLRequestContextGetter* GetMediaURLRequestContext() override;
76 mojom::NetworkContext* GetNetworkContext() override;
76 storage::QuotaManager* GetQuotaManager() override; 77 storage::QuotaManager* GetQuotaManager() override;
77 ChromeAppCacheService* GetAppCacheService() override; 78 ChromeAppCacheService* GetAppCacheService() override;
78 storage::FileSystemContext* GetFileSystemContext() override; 79 storage::FileSystemContext* GetFileSystemContext() override;
79 storage::DatabaseTracker* GetDatabaseTracker() override; 80 storage::DatabaseTracker* GetDatabaseTracker() override;
80 DOMStorageContextWrapper* GetDOMStorageContext() override; 81 DOMStorageContextWrapper* GetDOMStorageContext() override;
81 IndexedDBContextImpl* GetIndexedDBContext() override; 82 IndexedDBContextImpl* GetIndexedDBContext() override;
82 CacheStorageContextImpl* GetCacheStorageContext() override; 83 CacheStorageContextImpl* GetCacheStorageContext() override;
83 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 84 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
84 #if !defined(OS_ANDROID) 85 #if !defined(OS_ANDROID)
85 HostZoomMap* GetHostZoomMap() override; 86 HostZoomMap* GetHostZoomMap() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 BroadcastChannelProvider* GetBroadcastChannelProvider(); 121 BroadcastChannelProvider* GetBroadcastChannelProvider();
121 BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap(); 122 BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap();
122 BlobURLLoaderFactory* GetBlobURLLoaderFactory(); 123 BlobURLLoaderFactory* GetBlobURLLoaderFactory();
123 BlobRegistryWrapper* GetBlobRegistry(); 124 BlobRegistryWrapper* GetBlobRegistry();
124 125
125 // mojom::StoragePartitionService interface. 126 // mojom::StoragePartitionService interface.
126 void OpenLocalStorage( 127 void OpenLocalStorage(
127 const url::Origin& origin, 128 const url::Origin& origin,
128 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; 129 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override;
129 130
130 // Returns the NetworkContext associated with this storage partition. Only
131 // used when the network service is enabled.
132 mojom::NetworkContext* network_context() { return network_context_.get(); }
133
134 scoped_refptr<URLLoaderFactoryGetter> url_loader_factory_getter() { 131 scoped_refptr<URLLoaderFactoryGetter> url_loader_factory_getter() {
135 return url_loader_factory_getter_; 132 return url_loader_factory_getter_;
136 } 133 }
137 134
138 // Can return nullptr while |this| is being destroyed. 135 // Can return nullptr while |this| is being destroyed.
139 BrowserContext* browser_context() const; 136 BrowserContext* browser_context() const;
140 137
141 // Called by each renderer process once. 138 // Called by each renderer process once.
142 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request); 139 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request);
143 140
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 BrowserContext* browser_context_; 261 BrowserContext* browser_context_;
265 262
266 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; 263 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_;
267 264
268 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 265 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
269 }; 266 };
270 267
271 } // namespace content 268 } // namespace content
272 269
273 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 270 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698