OLD | NEW |
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 #include "content/browser/worker_host/worker_storage_partition.h" | 5 #include "content/browser/worker_host/worker_storage_partition.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "content/browser/appcache/chrome_appcache_service.h" | 9 #include "content/browser/appcache/chrome_appcache_service.h" |
10 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 10 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 const WorkerStoragePartition& WorkerStoragePartition::operator=( | 40 const WorkerStoragePartition& WorkerStoragePartition::operator=( |
41 const WorkerStoragePartition& rhs) { | 41 const WorkerStoragePartition& rhs) { |
42 Copy(rhs); | 42 Copy(rhs); |
43 return *this; | 43 return *this; |
44 } | 44 } |
45 | 45 |
46 bool WorkerStoragePartition::Equals( | 46 bool WorkerStoragePartition::Equals( |
47 const WorkerStoragePartition& other) const { | 47 const WorkerStoragePartition& other) const { |
48 return url_request_context_ == other.url_request_context_ && | 48 return url_request_context_.get() == other.url_request_context_.get() && |
49 media_url_request_context_ == other.media_url_request_context_ && | 49 media_url_request_context_.get() == |
50 appcache_service_ == other.appcache_service_ && | 50 other.media_url_request_context_.get() && |
51 quota_manager_ == other.quota_manager_ && | 51 appcache_service_.get() == other.appcache_service_.get() && |
52 filesystem_context_ == other.filesystem_context_ && | 52 quota_manager_.get() == other.quota_manager_.get() && |
53 database_tracker_ == other.database_tracker_ && | 53 filesystem_context_.get() == other.filesystem_context_.get() && |
54 indexed_db_context_ == other.indexed_db_context_; | 54 database_tracker_.get() == other.database_tracker_.get() && |
| 55 indexed_db_context_.get() == other.indexed_db_context_.get(); |
55 } | 56 } |
56 | 57 |
57 WorkerStoragePartition::~WorkerStoragePartition() { | 58 WorkerStoragePartition::~WorkerStoragePartition() { |
58 } | 59 } |
59 | 60 |
60 void WorkerStoragePartition::Copy(const WorkerStoragePartition& other) { | 61 void WorkerStoragePartition::Copy(const WorkerStoragePartition& other) { |
61 url_request_context_ = other.url_request_context_; | 62 url_request_context_ = other.url_request_context_; |
62 media_url_request_context_ = other.media_url_request_context_; | 63 media_url_request_context_ = other.media_url_request_context_; |
63 appcache_service_ = other.appcache_service_; | 64 appcache_service_ = other.appcache_service_; |
64 quota_manager_ = other.quota_manager_; | 65 quota_manager_ = other.quota_manager_; |
65 filesystem_context_ = other.filesystem_context_; | 66 filesystem_context_ = other.filesystem_context_; |
66 database_tracker_ = other.database_tracker_; | 67 database_tracker_ = other.database_tracker_; |
67 indexed_db_context_ = other.indexed_db_context_; | 68 indexed_db_context_ = other.indexed_db_context_; |
68 } | 69 } |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
OLD | NEW |