| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/in_process_webkit/indexed_db_key_utility_client.h" | 5 #include "chrome/browser/in_process_webkit/indexed_db_key_utility_client.h" |
| 6 | 6 |
| 7 #include <vector> |
| 8 |
| 7 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/common/indexed_db_key.h" | 10 #include "chrome/common/indexed_db_key.h" |
| 9 #include "chrome/common/notification_service.h" | |
| 10 #include "chrome/common/serialized_script_value.h" | 11 #include "chrome/common/serialized_script_value.h" |
| 11 | 12 |
| 12 IndexedDBKeyUtilityClient::IndexedDBKeyUtilityClient() | 13 IndexedDBKeyUtilityClient::IndexedDBKeyUtilityClient() |
| 13 : waitable_event_(false, false), | 14 : waitable_event_(false, false), |
| 14 state_(STATE_UNINITIALIZED), | 15 state_(STATE_UNINITIALIZED), |
| 15 utility_process_host_(NULL) { | 16 utility_process_host_(NULL) { |
| 16 } | 17 } |
| 17 | 18 |
| 18 IndexedDBKeyUtilityClient::~IndexedDBKeyUtilityClient() { | 19 IndexedDBKeyUtilityClient::~IndexedDBKeyUtilityClient() { |
| 19 DCHECK(state_ == STATE_UNINITIALIZED || state_ == STATE_SHUTDOWN); | 20 DCHECK(state_ == STATE_UNINITIALIZED || state_ == STATE_SHUTDOWN); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void IndexedDBKeyUtilityClient::Client::OnIDBKeysFromValuesAndKeyPathSucceeded( | 157 void IndexedDBKeyUtilityClient::Client::OnIDBKeysFromValuesAndKeyPathSucceeded( |
| 157 int id, const std::vector<IndexedDBKey>& keys) { | 158 int id, const std::vector<IndexedDBKey>& keys) { |
| 158 parent_->SetKeys(keys); | 159 parent_->SetKeys(keys); |
| 159 parent_->FinishCreatingKeys(); | 160 parent_->FinishCreatingKeys(); |
| 160 } | 161 } |
| 161 | 162 |
| 162 void IndexedDBKeyUtilityClient::Client::OnIDBKeysFromValuesAndKeyPathFailed( | 163 void IndexedDBKeyUtilityClient::Client::OnIDBKeysFromValuesAndKeyPathFailed( |
| 163 int id) { | 164 int id) { |
| 164 parent_->FinishCreatingKeys(); | 165 parent_->FinishCreatingKeys(); |
| 165 } | 166 } |
| OLD | NEW |