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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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 2016 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_OPEN_REQUEST_OBSERVER_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom. h"
14
15 namespace content {
16
17 class IndexedDBConnection;
18 class IndexedDBDatabaseError;
19 struct IndexedDBDatabaseMetadata;
20
21 class CONTENT_EXPORT IndexedDBOpenRequestObserver
22 : public base::RefCounted<IndexedDBOpenRequestObserver> {
23 public:
24 IndexedDBOpenRequestObserver(
25 ::indexed_db::mojom::OpenRequestObserverPtr observer);
26
27 virtual void OnBlocked(int64_t old_version);
28
29 virtual void OnUpgradeNeeded(int64_t old_version,
30 IndexedDBConnection* connection,
31 const IndexedDBDatabaseMetadata& index_metadata);
32
33 protected:
34 virtual ~IndexedDBOpenRequestObserver();
35
36 private:
37 friend class base::RefCounted<IndexedDBOpenRequestObserver>;
38
39 ::indexed_db::mojom::OpenRequestObserverPtr observer_;
40
41 DISALLOW_COPY_AND_ASSIGN(IndexedDBOpenRequestObserver);
42 };
43
44 } // namespace content
45
46 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698