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

Unified Diff: content/browser/worker_host/worker_storage_partition.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/worker_host/worker_storage_partition.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_storage_partition.cc
diff --git a/content/browser/worker_host/worker_storage_partition.cc b/content/browser/worker_host/worker_storage_partition.cc
index c253d72c9d06320b586dd0f1fa5082a667a9b6cb..ea7f7fad7d88c2c35bd458e1d06959da3d0d1ae3 100644
--- a/content/browser/worker_host/worker_storage_partition.cc
+++ b/content/browser/worker_host/worker_storage_partition.cc
@@ -8,15 +8,20 @@
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/in_process_webkit/indexed_db_context_impl.h"
+#include "net/url_request/url_request_context_getter.h"
#include "webkit/database/database_tracker.h"
#include "webkit/fileapi/file_system_context.h"
WorkerStoragePartition::WorkerStoragePartition(
+ net::URLRequestContextGetter* url_request_context,
+ net::URLRequestContextGetter* media_url_request_context,
ChromeAppCacheService* appcache_service,
fileapi::FileSystemContext* filesystem_context,
webkit_database::DatabaseTracker* database_tracker,
IndexedDBContextImpl* indexed_db_context)
- : appcache_service_(appcache_service),
+ : url_request_context_(url_request_context),
+ media_url_request_context_(media_url_request_context),
+ appcache_service_(appcache_service),
filesystem_context_(filesystem_context),
database_tracker_(database_tracker),
indexed_db_context_(indexed_db_context) {
@@ -35,7 +40,9 @@ const WorkerStoragePartition& WorkerStoragePartition::operator=(
bool WorkerStoragePartition::Equals(
const WorkerStoragePartition& other) const {
- return appcache_service_ == other.appcache_service_ &&
+ return url_request_context_ == other.url_request_context_ &&
+ media_url_request_context_ == other.media_url_request_context_ &&
+ appcache_service_ == other.appcache_service_ &&
filesystem_context_ == other.filesystem_context_ &&
database_tracker_ == other.database_tracker_ &&
indexed_db_context_ == other.indexed_db_context_;
@@ -45,6 +52,8 @@ WorkerStoragePartition::~WorkerStoragePartition() {
}
void WorkerStoragePartition::Copy(const WorkerStoragePartition& other) {
+ url_request_context_ = other.url_request_context_;
+ media_url_request_context_ = other.media_url_request_context_;
appcache_service_ = other.appcache_service_;
filesystem_context_ = other.filesystem_context_;
database_tracker_ = other.database_tracker_;
« no previous file with comments | « content/browser/worker_host/worker_storage_partition.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698