OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // id in the high 32 bits. The mapping is host-specific and ids are validated. | 89 // id in the high 32 bits. The mapping is host-specific and ids are validated. |
90 int64 HostTransactionId(int64 transaction_id); | 90 int64 HostTransactionId(int64 transaction_id); |
91 int64 RendererTransactionId(int64 host_transaction_id); | 91 int64 RendererTransactionId(int64 host_transaction_id); |
92 | 92 |
93 // These are called to decode a host transaction ID, for diagnostic purposes. | 93 // These are called to decode a host transaction ID, for diagnostic purposes. |
94 static uint32 TransactionIdToRendererTransactionId(int64 host_transaction_id); | 94 static uint32 TransactionIdToRendererTransactionId(int64 host_transaction_id); |
95 static uint32 TransactionIdToProcessId(int64 host_transaction_id); | 95 static uint32 TransactionIdToProcessId(int64 host_transaction_id); |
96 | 96 |
97 void HoldBlobDataHandle( | 97 void HoldBlobDataHandle( |
98 const std::string& uuid, | 98 const std::string& uuid, |
99 scoped_ptr<webkit_blob::BlobDataHandle>& blob_data_handle); | 99 scoped_ptr<webkit_blob::BlobDataHandle> blob_data_handle); |
100 void DropBlobDataHandle(const std::string& uuid); | 100 void DropBlobDataHandle(const std::string& uuid); |
101 | 101 |
102 private: | 102 private: |
103 // Friends to enable OnDestruct() delegation. | 103 // Friends to enable OnDestruct() delegation. |
104 friend class BrowserThread; | 104 friend class BrowserThread; |
105 friend class base::DeleteHelper<IndexedDBDispatcherHost>; | 105 friend class base::DeleteHelper<IndexedDBDispatcherHost>; |
106 | 106 |
107 virtual ~IndexedDBDispatcherHost(); | 107 virtual ~IndexedDBDispatcherHost(); |
108 | 108 |
109 // Message processing. Most of the work is delegated to the dispatcher hosts | 109 // Message processing. Most of the work is delegated to the dispatcher hosts |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 // Used to set file permissions for blob storage. | 281 // Used to set file permissions for blob storage. |
282 int ipc_process_id_; | 282 int ipc_process_id_; |
283 | 283 |
284 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 284 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
285 }; | 285 }; |
286 | 286 |
287 } // namespace content | 287 } // namespace content |
288 | 288 |
289 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 289 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |