| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/dom_storage/local_storage_context_mojo.h" | 5 #include "content/browser/dom_storage/local_storage_context_mojo.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "content/browser/leveldb_wrapper_impl.h" | 8 #include "content/browser/leveldb_wrapper_impl.h" |
| 8 #include "content/common/dom_storage/dom_storage_types.h" | 9 #include "content/common/dom_storage/dom_storage_types.h" |
| 9 #include "services/file/public/interfaces/constants.mojom.h" | 10 #include "services/file/public/interfaces/constants.mojom.h" |
| 10 #include "services/service_manager/public/cpp/connection.h" | 11 #include "services/service_manager/public/cpp/connection.h" |
| 11 #include "services/service_manager/public/cpp/connector.h" | 12 #include "services/service_manager/public/cpp/connector.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 const char kOriginSeparator = '\x00'; | 17 const char kOriginSeparator = '\x00'; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 kMaxCommitsPerHour, | 156 kMaxCommitsPerHour, |
| 156 base::Bind(&LocalStorageContextMojo::OnLevelDBWrapperHasNoBindings, | 157 base::Bind(&LocalStorageContextMojo::OnLevelDBWrapperHasNoBindings, |
| 157 base::Unretained(this), origin)); | 158 base::Unretained(this), origin)); |
| 158 found = level_db_wrappers_.find(origin); | 159 found = level_db_wrappers_.find(origin); |
| 159 } | 160 } |
| 160 | 161 |
| 161 found->second->Bind(std::move(request)); | 162 found->second->Bind(std::move(request)); |
| 162 } | 163 } |
| 163 | 164 |
| 164 } // namespace content | 165 } // namespace content |
| OLD | NEW |