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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_key_utility_client.h

Issue 9221008: Move cleanup that happens on IO thread destruction to content, so that not every embedder has to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_process_sub_thread.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_process_sub_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698