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

Side by Side Diff: content/browser/indexed_db/indexed_db_open_request_observer_impl.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 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_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_
7
8 #include "content/browser/indexed_db/indexed_db_open_request_observer.h"
9 #include "third_party/WebKit/Source/modules/indexeddb/indexed_db.mojom.h"
10
11 namespace content {
12
13 class CONTENT_EXPORT IndexedDBOpenRequestObserverImpl
14 : public IndexedDBOpenRequestObserver {
15 public:
16 IndexedDBOpenRequestObserverImpl(
17 ::indexed_db::mojom::OpenRequestObserverPtr observer);
18
19 // content::IndexedDBOpenRequestObserver::
20 void OnBlocked(int64_t old_version) override;
21 void OnUpgradeNeeded(
22 int64_t old_version,
23 IndexedDBConnection* connection,
24 const IndexedDBDataLossInfo& data_loss_info,
25 const IndexedDBDatabaseMetadata& index_metadata) override;
26
27 protected:
28 ~IndexedDBOpenRequestObserverImpl() override;
29
30 private:
31 friend class base::RefCounted<IndexedDBOpenRequestObserverImpl>;
32
33 ::indexed_db::mojom::OpenRequestObserverPtr observer_;
34
35 DISALLOW_COPY_AND_ASSIGN(IndexedDBOpenRequestObserverImpl);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698