Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: content/browser/in_process_webkit/indexed_db_key_utility_client.cc

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting nit. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/in_process_webkit/indexed_db_key_utility_client.cc
diff --git a/content/browser/in_process_webkit/indexed_db_key_utility_client.cc b/content/browser/in_process_webkit/indexed_db_key_utility_client.cc
index 331febfe791cd2f085713bab05f64d02a0a2f022..a8f55377f9180b843a2bc372cd4166b58f3bc76f 100644
--- a/content/browser/in_process_webkit/indexed_db_key_utility_client.cc
+++ b/content/browser/in_process_webkit/indexed_db_key_utility_client.cc
@@ -9,6 +9,7 @@
#include "base/synchronization/waitable_event.h"
#include "content/browser/utility_process_host_impl.h"
#include "content/common/indexed_db/indexed_db_key.h"
+#include "content/common/indexed_db/indexed_db_key_path.h"
#include "content/common/indexed_db/indexed_db_messages.h"
#include "content/common/utility_messages.h"
#include "content/public/browser/utility_process_host_client.h"
@@ -36,7 +37,7 @@ class KeyUtilityClientImpl
// Synchronously obtain the |keys| from |values| for the given |key_path|.
void CreateIDBKeysFromSerializedValuesAndKeyPath(
const std::vector<content::SerializedScriptValue>& values,
- const string16& key_path,
+ const IndexedDBKeyPath& key_path,
std::vector<IndexedDBKey>* keys);
// Synchronously inject |key| into |value| using the given |key_path|,
@@ -44,7 +45,7 @@ class KeyUtilityClientImpl
content::SerializedScriptValue InjectIDBKeyIntoSerializedValue(
const IndexedDBKey& key,
const content::SerializedScriptValue& value,
- const string16& key_path);
+ const IndexedDBKeyPath& key_path);
private:
class Client : public UtilityProcessHostClient {
@@ -75,11 +76,11 @@ class KeyUtilityClientImpl
void EndUtilityProcessInternal();
void CallStartIDBKeyFromValueAndKeyPathFromIOThread(
const std::vector<content::SerializedScriptValue>& values,
- const string16& key_path);
+ const IndexedDBKeyPath& key_path);
void CallStartInjectIDBKeyFromIOThread(
const IndexedDBKey& key,
const content::SerializedScriptValue& value,
- const string16& key_path);
+ const IndexedDBKeyPath& key_path);
void SetKeys(const std::vector<IndexedDBKey>& keys);
void FinishCreatingKeys();
@@ -136,7 +137,7 @@ void IndexedDBKeyUtilityClient::Shutdown() {
// static
void IndexedDBKeyUtilityClient::CreateIDBKeysFromSerializedValuesAndKeyPath(
const std::vector<content::SerializedScriptValue>& values,
- const string16& key_path,
+ const IndexedDBKeyPath& key_path,
std::vector<IndexedDBKey>* keys) {
IndexedDBKeyUtilityClient* instance = client_instance.Pointer();
@@ -158,7 +159,7 @@ void IndexedDBKeyUtilityClient::CreateIDBKeysFromSerializedValuesAndKeyPath(
content::SerializedScriptValue
IndexedDBKeyUtilityClient::InjectIDBKeyIntoSerializedValue(
const IndexedDBKey& key, const content::SerializedScriptValue& value,
- const string16& key_path) {
+ const IndexedDBKeyPath& key_path) {
IndexedDBKeyUtilityClient* instance = client_instance.Pointer();
if (instance->is_shutdown_)
@@ -210,7 +211,7 @@ void KeyUtilityClientImpl::StartUtilityProcess() {
void KeyUtilityClientImpl::CreateIDBKeysFromSerializedValuesAndKeyPath(
const std::vector<content::SerializedScriptValue>& values,
- const string16& key_path,
+ const IndexedDBKeyPath& key_path,
std::vector<IndexedDBKey>* keys) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED));
if (state_ == STATE_SHUTDOWN) {
@@ -232,7 +233,7 @@ content::SerializedScriptValue
KeyUtilityClientImpl::InjectIDBKeyIntoSerializedValue(
const IndexedDBKey& key,
const content::SerializedScriptValue& value,
- const string16& key_path) {
+ const IndexedDBKeyPath& key_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED));
if (state_ == STATE_SHUTDOWN)
return content::SerializedScriptValue();
@@ -304,7 +305,7 @@ void KeyUtilityClientImpl::EndUtilityProcessInternal() {
void KeyUtilityClientImpl::CallStartIDBKeyFromValueAndKeyPathFromIOThread(
const std::vector<content::SerializedScriptValue>& values,
- const string16& key_path) {
+ const IndexedDBKeyPath& key_path) {
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -324,7 +325,7 @@ void KeyUtilityClientImpl::CallStartIDBKeyFromValueAndKeyPathFromIOThread(
void KeyUtilityClientImpl::CallStartInjectIDBKeyFromIOThread(
const IndexedDBKey& key,
const content::SerializedScriptValue& value,
- const string16& key_path) {
+ const IndexedDBKeyPath& key_path) {
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698