| 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 787b2d290046abb022f95c16133e1fa3a130aabd..eb3c7ab47ed0549363d0c16194eba06e725a7e55 100644
|
| --- a/content/browser/worker_host/worker_storage_partition.cc
|
| +++ b/content/browser/worker_host/worker_storage_partition.cc
|
| @@ -73,4 +73,53 @@ void WorkerStoragePartition::Copy(const WorkerStoragePartition& other) {
|
| service_worker_context_ = other.service_worker_context_;
|
| }
|
|
|
| +WorkerStoragePartitionId::WorkerStoragePartitionId(
|
| + const WorkerStoragePartition& partition)
|
| + : url_request_context_(partition.url_request_context()),
|
| + media_url_request_context_(partition.media_url_request_context()),
|
| + appcache_service_(partition.appcache_service()),
|
| + quota_manager_(partition.quota_manager()),
|
| + filesystem_context_(partition.filesystem_context()),
|
| + database_tracker_(partition.database_tracker()),
|
| + indexed_db_context_(partition.indexed_db_context()),
|
| + service_worker_context_(partition.service_worker_context()) {
|
| +}
|
| +
|
| +WorkerStoragePartitionId::WorkerStoragePartitionId(
|
| + const WorkerStoragePartitionId& other) {
|
| + Copy(other);
|
| +}
|
| +
|
| +const WorkerStoragePartitionId& WorkerStoragePartitionId::operator=(
|
| + const WorkerStoragePartitionId& rhs) {
|
| + Copy(rhs);
|
| + return *this;
|
| +}
|
| +
|
| +WorkerStoragePartitionId::~WorkerStoragePartitionId() {
|
| +}
|
| +
|
| +void WorkerStoragePartitionId::Copy(const WorkerStoragePartitionId& other) {
|
| + url_request_context_ = other.url_request_context_;
|
| + media_url_request_context_ = other.media_url_request_context_;
|
| + appcache_service_ = other.appcache_service_;
|
| + quota_manager_ = other.quota_manager_;
|
| + filesystem_context_ = other.filesystem_context_;
|
| + database_tracker_ = other.database_tracker_;
|
| + indexed_db_context_ = other.indexed_db_context_;
|
| + service_worker_context_ = other.service_worker_context_;
|
| +}
|
| +
|
| +bool WorkerStoragePartitionId::Equals(
|
| + const WorkerStoragePartitionId& other) const {
|
| + return url_request_context_ == other.url_request_context_ &&
|
| + media_url_request_context_ == other.media_url_request_context_ &&
|
| + appcache_service_ == other.appcache_service_ &&
|
| + quota_manager_ == other.quota_manager_ &&
|
| + filesystem_context_ == other.filesystem_context_ &&
|
| + database_tracker_ == other.database_tracker_ &&
|
| + indexed_db_context_ == other.indexed_db_context_ &&
|
| + service_worker_context_ == other.service_worker_context_;
|
| +}
|
| +
|
| } // namespace content
|
|
|