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

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h" 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h"
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h" 12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h"
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" 13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
13 14
14 namespace blink { 15 namespace blink {
15 class WebBlobInfo; 16 class WebBlobInfo;
16 class WebIDBCallbacks; 17 class WebIDBCallbacks;
17 class WebIDBDatabaseCallbacks; 18 class WebIDBDatabaseCallbacks;
18 class WebString; 19 class WebString;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
22 class ThreadSafeSender; 23 class ThreadSafeSender;
23 24
24 class WebIDBDatabaseImpl : public blink::WebIDBDatabase { 25 class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
25 public: 26 public:
26 WebIDBDatabaseImpl(int32 ipc_database_id, 27 WebIDBDatabaseImpl(int32_t ipc_database_id,
27 int32 ipc_database_callbacks_id, 28 int32_t ipc_database_callbacks_id,
28 ThreadSafeSender* thread_safe_sender); 29 ThreadSafeSender* thread_safe_sender);
29 ~WebIDBDatabaseImpl() override; 30 ~WebIDBDatabaseImpl() override;
30 31
31 // blink::WebIDBDatabase 32 // blink::WebIDBDatabase
32 void createObjectStore(long long transaction_id, 33 void createObjectStore(long long transaction_id,
33 long long objectstore_id, 34 long long objectstore_id,
34 const blink::WebString& name, 35 const blink::WebString& name,
35 const blink::WebIDBKeyPath& key_path, 36 const blink::WebIDBKeyPath& key_path,
36 bool auto_increment) override; 37 bool auto_increment) override;
37 void deleteObjectStore(long long transaction_id, 38 void deleteObjectStore(long long transaction_id,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool multiEntry) override; 104 bool multiEntry) override;
104 void deleteIndex(long long transactionId, 105 void deleteIndex(long long transactionId,
105 long long objectStoreId, 106 long long objectStoreId,
106 long long indexId) override; 107 long long indexId) override;
107 void abort(long long transaction_id) override; 108 void abort(long long transaction_id) override;
108 void commit(long long transaction_id) override; 109 void commit(long long transaction_id) override;
109 void ackReceivedBlobs( 110 void ackReceivedBlobs(
110 const blink::WebVector<blink::WebString>& uuids) override; 111 const blink::WebVector<blink::WebString>& uuids) override;
111 112
112 private: 113 private:
113 int32 ipc_database_id_; 114 int32_t ipc_database_id_;
114 int32 ipc_database_callbacks_id_; 115 int32_t ipc_database_callbacks_id_;
115 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 116 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
116 }; 117 };
117 118
118 } // namespace content 119 } // namespace content
119 120
120 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 121 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698