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

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

Issue 15659013: Revert "Migrate the IndexedDB backend from Blink to Chromium" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h"
11
12 namespace content {
13
14 class IndexedDBCallbacksWrapper;
15 class IndexedDBDatabase;
16 class IndexedDBDatabaseCallbacksWrapper;
17
18 class IndexedDBFactory : public base::RefCounted<IndexedDBFactory> {
19 public:
20 static scoped_refptr<IndexedDBFactory> Create();
21
22 virtual void GetDatabaseNames(
23 scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
24 const string16& database_identifier,
25 const string16& data_dir) = 0;
26 virtual void Open(
27 const string16& name,
28 int64 version,
29 int64 transaction_id,
30 scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
31 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
32 const string16& database_identifier,
33 const string16& data_dir) = 0;
34 virtual void DeleteDatabase(
35 const string16& name,
36 scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
37 const string16& database_identifier,
38 const string16& data_dir) = 0;
39
40 protected:
41 virtual ~IndexedDBFactory() {}
42 friend class base::RefCounted<IndexedDBFactory>;
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_impl.cc ('k') | content/browser/indexed_db/indexed_db_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698