| 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 "webkit/dom_storage/dom_storage_area.h" | 5 #include "webkit/dom_storage/dom_storage_area.h" |
| 6 |
| 7 #include "base/logging.h" |
| 6 #include "webkit/dom_storage/dom_storage_map.h" | 8 #include "webkit/dom_storage/dom_storage_map.h" |
| 7 #include "webkit/dom_storage/dom_storage_namespace.h" | 9 #include "webkit/dom_storage/dom_storage_namespace.h" |
| 8 #include "webkit/dom_storage/dom_storage_types.h" | 10 #include "webkit/dom_storage/dom_storage_types.h" |
| 9 | 11 |
| 10 namespace dom_storage { | 12 namespace dom_storage { |
| 11 | 13 |
| 12 DomStorageArea::DomStorageArea( | 14 DomStorageArea::DomStorageArea( |
| 13 int64 namespace_id, const GURL& origin, | 15 int64 namespace_id, const GURL& origin, |
| 14 const FilePath& directory, DomStorageTaskRunner* task_runner) | 16 const FilePath& directory, DomStorageTaskRunner* task_runner) |
| 15 : namespace_id_(namespace_id), | 17 : namespace_id_(namespace_id), |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 DCHECK_NE(kLocalStorageNamespaceId, namespace_id_); | 63 DCHECK_NE(kLocalStorageNamespaceId, namespace_id_); |
| 62 DCHECK_NE(kLocalStorageNamespaceId, destination_namespace_id); | 64 DCHECK_NE(kLocalStorageNamespaceId, destination_namespace_id); |
| 63 // SessionNamespaces aren't backed by files on disk. | 65 // SessionNamespaces aren't backed by files on disk. |
| 64 DomStorageArea* copy = new DomStorageArea(destination_namespace_id, origin_, | 66 DomStorageArea* copy = new DomStorageArea(destination_namespace_id, origin_, |
| 65 FilePath(), task_runner_); | 67 FilePath(), task_runner_); |
| 66 copy->map_ = map_; | 68 copy->map_ = map_; |
| 67 return copy; | 69 return copy; |
| 68 } | 70 } |
| 69 | 71 |
| 70 } // namespace dom_storage | 72 } // namespace dom_storage |
| OLD | NEW |