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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h"
13
14 namespace content {
15 class IndexedDBDatabaseError;
16 class IndexedDBDispatcherHost;
17 class IndexedDBObserverChanges;
18
19 class CONTENT_EXPORT IndexedDBDatabaseCallbacks
20 : public base::RefCounted<IndexedDBDatabaseCallbacks> {
21 public:
22 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host,
23 int ipc_thread_id,
24 int ipc_database_callbacks_id);
25
26 virtual void OnForcedClose();
27 virtual void OnVersionChange(int64_t old_version, int64_t new_version);
28
29 virtual void OnAbort(int64_t host_transaction_id,
30 const IndexedDBDatabaseError& error);
31 virtual void OnComplete(int64_t host_transaction_id);
32 virtual void OnDatabaseChange(
33 int32_t ipc_database_id,
34 std::unique_ptr<IndexedDBObserverChanges> changes);
35
36 protected:
37 virtual ~IndexedDBDatabaseCallbacks();
38
39 private:
40 friend class base::RefCounted<IndexedDBDatabaseCallbacks>;
41
42 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
43 int ipc_thread_id_;
44 int ipc_database_callbacks_id_;
45
46 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks);
47 };
48
49 } // namespace content
50
51 #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