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

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

Issue 10834350: Remove all the indexeddb-related utility process code (Closed) Base URL: http://git.chromium.org/chromium/src.git@opencursor-cleanup
Patch Set: Rebase, attempt to reland Created 8 years, 4 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.h
diff --git a/content/browser/in_process_webkit/indexed_db_key_utility_client.h b/content/browser/in_process_webkit/indexed_db_key_utility_client.h
deleted file mode 100644
index 67c0aa47e99aa3f0119f0018a227dbd9a2d3c889..0000000000000000000000000000000000000000
--- a/content/browser/in_process_webkit/indexed_db_key_utility_client.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_
-#define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_
-
-#include <vector>
-
-#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
-
-class KeyUtilityClientImpl;
-
-namespace base {
-template <typename T>
-struct DefaultLazyInstanceTraits;
-} // namespace base
-
-namespace content {
-class IndexedDBKey;
-class IndexedDBKeyPath;
-class SerializedScriptValue;
-}
-
-// Class for obtaining IndexedDBKeys from the SerializedScriptValues given
-// an IDBKeyPath. This class is a thin singleton wrapper around the
-// KeyUtilityClientImpl, which does the real work.
-class IndexedDBKeyUtilityClient {
- public:
- // Synchronously obtain the |keys| from |values| for the given |key_path|.
- static void CreateIDBKeysFromSerializedValuesAndKeyPath(
- const std::vector<content::SerializedScriptValue>& values,
- const content::IndexedDBKeyPath& key_path,
- std::vector<content::IndexedDBKey>* keys);
-
- // Synchronously inject |key| into |value| using |key_path|. Returns the new
- // value.
- static content::SerializedScriptValue InjectIDBKeyIntoSerializedValue(
- const content::IndexedDBKey& key,
- const content::SerializedScriptValue& value,
- const content::IndexedDBKeyPath& key_path);
-
- // Shut down the underlying implementation. Must be called on the IO thread.
- static void Shutdown();
-
- private:
- friend struct base::DefaultLazyInstanceTraits<IndexedDBKeyUtilityClient>;
- IndexedDBKeyUtilityClient();
- ~IndexedDBKeyUtilityClient();
-
- bool is_shutdown_;
-
- // The real client; laziliy instantiated.
- scoped_refptr<KeyUtilityClientImpl> impl_;
-};
-
-#endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698