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

Unified Diff: content/utility/utility_thread_impl.cc

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IndexedDBKeyPath to content namespace, formatting nits. 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
« no previous file with comments | « content/utility/utility_thread_impl.h ('k') | webkit/glue/idb_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_thread_impl.cc
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index b93eb544e73ea603e73ebcde35e03a350661d581..a4b5ed1f0f2b2565bea3394bd73e431fa67cee1a 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -12,6 +12,7 @@
#include "content/common/child_process.h"
#include "content/common/child_process_messages.h"
#include "content/common/indexed_db/indexed_db_key.h"
+#include "content/common/indexed_db/indexed_db_key_path.h"
#include "content/common/utility_messages.h"
#include "content/common/webkitplatformsupport_impl.h"
#include "content/public/utility/content_utility_client.h"
@@ -94,16 +95,12 @@ bool UtilityThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
void UtilityThreadImpl::OnIDBKeysFromValuesAndKeyPath(
int id,
const std::vector<content::SerializedScriptValue>& serialized_script_values,
- const string16& idb_key_path) {
+ const content::IndexedDBKeyPath& idb_key_path) {
std::vector<WebKit::WebSerializedScriptValue> web_values;
ConvertVector(serialized_script_values, &web_values);
std::vector<WebKit::WebIDBKey> web_keys;
- bool error = webkit_glue::IDBKeysFromValuesAndKeyPath(
+ webkit_glue::IDBKeysFromValuesAndKeyPath(
web_values, idb_key_path, &web_keys);
- if (error) {
- Send(new UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed(id));
- return;
- }
std::vector<IndexedDBKey> keys;
ConvertVector(web_keys, &keys);
Send(new UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded(id, keys));
@@ -113,7 +110,7 @@ void UtilityThreadImpl::OnIDBKeysFromValuesAndKeyPath(
void UtilityThreadImpl::OnInjectIDBKey(
const IndexedDBKey& key,
const content::SerializedScriptValue& value,
- const string16& key_path) {
+ const content::IndexedDBKeyPath& key_path) {
content::SerializedScriptValue new_value(
webkit_glue::InjectIDBKey(key, value, key_path));
Send(new UtilityHostMsg_InjectIDBKey_Finished(new_value));
« no previous file with comments | « content/utility/utility_thread_impl.h ('k') | webkit/glue/idb_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698