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

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: 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_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_H_
7
8 #include <memory>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "content/common/content_export.h"
14
15 namespace content {
16
17 class IndexedDBConnection;
18 struct IndexedDBDatabaseMetadata;
19 struct IndexedDBDataLossInfo;
20
21 // Used during database open (and delete).
22 class CONTENT_EXPORT IndexedDBOpenRequestObserver
23 : public base::RefCounted<IndexedDBOpenRequestObserver> {
24 public:
25 IndexedDBOpenRequestObserver() {}
26
27 // Called when a database open is blocked.
28 virtual void OnBlocked(int64_t old_version) = 0;
29
30 // Called during database upgrade.
31 virtual void OnUpgradeNeeded(
32 int64_t old_version,
33 IndexedDBConnection* connection,
34 const IndexedDBDataLossInfo& data_loss_info,
35 const IndexedDBDatabaseMetadata& index_metadata) = 0;
36
37 protected:
38 virtual ~IndexedDBOpenRequestObserver() {}
39
40 private:
41 friend class base::RefCounted<IndexedDBOpenRequestObserver>;
42
43 DISALLOW_COPY_AND_ASSIGN(IndexedDBOpenRequestObserver);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_metadata.cc ('k') | content/browser/indexed_db/indexed_db_open_request_observer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698