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

Side by Side Diff: content/browser/indexed_db/indexed_db_database_callbacks.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 (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_DATABASE_CALLBACKS_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
10 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
11 13
12 namespace content { 14 namespace content {
13 class IndexedDBDatabaseError; 15 class IndexedDBDatabaseError;
14 class IndexedDBDispatcherHost; 16 class IndexedDBDispatcherHost;
15 17
16 class CONTENT_EXPORT IndexedDBDatabaseCallbacks 18 class CONTENT_EXPORT IndexedDBDatabaseCallbacks
17 : public base::RefCounted<IndexedDBDatabaseCallbacks> { 19 : public base::RefCounted<IndexedDBDatabaseCallbacks> {
18 public: 20 public:
19 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, 21 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host,
20 int ipc_thread_id, 22 int ipc_thread_id,
21 int ipc_database_callbacks_id); 23 int ipc_database_callbacks_id);
22 24
23 virtual void OnForcedClose(); 25 virtual void OnForcedClose();
24 virtual void OnVersionChange(int64 old_version, int64 new_version); 26 virtual void OnVersionChange(int64_t old_version, int64_t new_version);
25 27
26 virtual void OnAbort(int64 host_transaction_id, 28 virtual void OnAbort(int64_t host_transaction_id,
27 const IndexedDBDatabaseError& error); 29 const IndexedDBDatabaseError& error);
28 virtual void OnComplete(int64 host_transaction_id); 30 virtual void OnComplete(int64_t host_transaction_id);
29 31
30 protected: 32 protected:
31 virtual ~IndexedDBDatabaseCallbacks(); 33 virtual ~IndexedDBDatabaseCallbacks();
32 34
33 private: 35 private:
34 friend class base::RefCounted<IndexedDBDatabaseCallbacks>; 36 friend class base::RefCounted<IndexedDBDatabaseCallbacks>;
35 37
36 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; 38 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
37 int ipc_thread_id_; 39 int ipc_thread_id_;
38 int ipc_database_callbacks_id_; 40 int ipc_database_callbacks_id_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks); 42 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks);
41 }; 43 };
42 44
43 } // namespace content 45 } // namespace content
44 46
45 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_ 47 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_database_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698