| 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/indexed_db/indexed_db_dispatcher_host.h" | 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
| 29 #include "content/public/common/content_switches.h" | 29 #include "content/public/common/content_switches.h" |
| 30 #include "content/public/common/result_codes.h" | 30 #include "content/public/common/result_codes.h" |
| 31 #include "storage/browser/blob/blob_data_builder.h" | 31 #include "storage/browser/blob/blob_data_builder.h" |
| 32 #include "storage/browser/blob/blob_storage_context.h" | 32 #include "storage/browser/blob/blob_storage_context.h" |
| 33 #include "storage/browser/database/database_util.h" | 33 #include "storage/browser/database/database_util.h" |
| 34 #include "storage/common/database/database_identifier.h" | 34 #include "storage/common/database/database_identifier.h" |
| 35 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" | 35 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
| 36 #include "url/origin.h" | 36 #include "url/origin.h" |
| 37 | 37 |
| 38 using storage::DatabaseUtil; | |
| 39 using blink::WebIDBKey; | |
| 40 | |
| 41 namespace content { | 38 namespace content { |
| 42 | 39 |
| 43 namespace { | 40 namespace { |
| 44 | 41 |
| 45 const char kInvalidOrigin[] = "Origin is invalid"; | 42 const char kInvalidOrigin[] = "Origin is invalid"; |
| 46 | 43 |
| 47 bool IsValidOrigin(const url::Origin& origin) { | 44 bool IsValidOrigin(const url::Origin& origin) { |
| 48 return !origin.unique(); | 45 return !origin.unique(); |
| 49 } | 46 } |
| 50 | 47 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); | 319 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
| 323 if (committed) { | 320 if (committed) { |
| 324 context()->TransactionComplete( | 321 context()->TransactionComplete( |
| 325 transaction_origin_map_[host_transaction_id]); | 322 transaction_origin_map_[host_transaction_id]); |
| 326 } | 323 } |
| 327 transaction_origin_map_.erase(host_transaction_id); | 324 transaction_origin_map_.erase(host_transaction_id); |
| 328 transaction_size_map_.erase(host_transaction_id); | 325 transaction_size_map_.erase(host_transaction_id); |
| 329 } | 326 } |
| 330 | 327 |
| 331 } // namespace content | 328 } // namespace content |
| OLD | NEW |