OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "chrome/browser/utility_process_host.h" | 11 #include "chrome/browser/utility_process_host.h" |
12 | 12 |
13 class IndexedDBKey; | 13 class IndexedDBKey; |
14 class SerializedScriptValue; | 14 class SerializedScriptValue; |
15 | 15 |
16 // This class is responsible to obtain IndexedDBKeys from the | 16 // This class is responsible to obtain IndexedDBKeys from the |
17 // SerializedScriptValues given an IDBKeyPath. It uses UtilityProcess to do this | 17 // SerializedScriptValues given an IDBKeyPath. It uses UtilityProcess to do this |
18 // inside a sandbox (a V8 lock is required there). At this level, all methods | 18 // inside a sandbox (a V8 lock is required there). At this level, all methods |
19 // are synchronous as required by the caller. The public API is used on | 19 // are synchronous as required by the caller. The public API is used on |
20 // WEBKIT thread, but internally it moves around to UI and IO as needed. | 20 // WEBKIT thread, but internally it moves around to UI and IO as needed. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::vector<IndexedDBKey> keys_; | 83 std::vector<IndexedDBKey> keys_; |
84 | 84 |
85 // Used in the IO thread. | 85 // Used in the IO thread. |
86 UtilityProcessHost* utility_process_host_; | 86 UtilityProcessHost* utility_process_host_; |
87 scoped_refptr<Client> client_; | 87 scoped_refptr<Client> client_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyUtilityClient); | 89 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyUtilityClient); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ | 92 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ |
OLD | NEW |