OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 std::vector<IndexedDBKey>* keys); | 36 std::vector<IndexedDBKey>* keys); |
37 | 37 |
38 // Synchronously inject |key| into |value| using |key_path|. Returns the new | 38 // Synchronously inject |key| into |value| using |key_path|. Returns the new |
39 // value. | 39 // value. |
40 static content::SerializedScriptValue InjectIDBKeyIntoSerializedValue( | 40 static content::SerializedScriptValue InjectIDBKeyIntoSerializedValue( |
41 const IndexedDBKey& key, | 41 const IndexedDBKey& key, |
42 const content::SerializedScriptValue& value, | 42 const content::SerializedScriptValue& value, |
43 const string16& key_path); | 43 const string16& key_path); |
44 | 44 |
45 // Shut down the underlying implementation. Must be called on the IO thread. | 45 // Shut down the underlying implementation. Must be called on the IO thread. |
46 CONTENT_EXPORT static void Shutdown(); | 46 static void Shutdown(); |
47 | 47 |
48 private: | 48 private: |
49 friend struct base::DefaultLazyInstanceTraits<IndexedDBKeyUtilityClient>; | 49 friend struct base::DefaultLazyInstanceTraits<IndexedDBKeyUtilityClient>; |
50 IndexedDBKeyUtilityClient(); | 50 IndexedDBKeyUtilityClient(); |
51 ~IndexedDBKeyUtilityClient(); | 51 ~IndexedDBKeyUtilityClient(); |
52 | 52 |
53 bool is_shutdown_; | 53 bool is_shutdown_; |
54 | 54 |
55 // The real client; laziliy instantiated. | 55 // The real client; laziliy instantiated. |
56 scoped_refptr<KeyUtilityClientImpl> impl_; | 56 scoped_refptr<KeyUtilityClientImpl> impl_; |
57 }; | 57 }; |
58 | 58 |
59 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 59 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
OLD | NEW |