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

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

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: rebase Created 3 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 class IndexedDBCursor; 28 class IndexedDBCursor;
29 class IndexedDBDatabase; 29 class IndexedDBDatabase;
30 struct IndexedDBDataLossInfo; 30 struct IndexedDBDataLossInfo;
31 struct IndexedDBDatabaseMetadata; 31 struct IndexedDBDatabaseMetadata;
32 struct IndexedDBReturnValue; 32 struct IndexedDBReturnValue;
33 struct IndexedDBValue; 33 struct IndexedDBValue;
34 34
35 class CONTENT_EXPORT IndexedDBCallbacks 35 class CONTENT_EXPORT IndexedDBCallbacks
36 : public base::RefCounted<IndexedDBCallbacks> { 36 : public base::RefCounted<IndexedDBCallbacks> {
37 public: 37 public:
38 // Destructively converts an IndexedDBValue to a Mojo Value.
39 static ::indexed_db::mojom::ValuePtr ConvertValue(IndexedDBValue* value);
40
38 IndexedDBCallbacks( 41 IndexedDBCallbacks(
39 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host, 42 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host,
40 const url::Origin& origin, 43 const url::Origin& origin,
41 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info); 44 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info);
42 45
43 virtual void OnError(const IndexedDBDatabaseError& error); 46 virtual void OnError(const IndexedDBDatabaseError& error);
44 47
45 // IndexedDBFactory::GetDatabaseNames 48 // IndexedDBFactory::GetDatabaseNames
46 virtual void OnSuccess(const std::vector<base::string16>& string); 49 virtual void OnSuccess(const std::vector<base::string16>& string);
47 50
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 121
119 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; 122 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_;
120 base::ThreadChecker thread_checker_; 123 base::ThreadChecker thread_checker_;
121 124
122 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); 125 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks);
123 }; 126 };
124 127
125 } // namespace content 128 } // namespace content
126 129
127 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 130 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | content/browser/indexed_db/indexed_db_connection.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698