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

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: fixed bit check 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 18 matching lines...) Expand all
29 class IndexedDBCursor; 29 class IndexedDBCursor;
30 class IndexedDBDatabase; 30 class IndexedDBDatabase;
31 struct IndexedDBDataLossInfo; 31 struct IndexedDBDataLossInfo;
32 struct IndexedDBDatabaseMetadata; 32 struct IndexedDBDatabaseMetadata;
33 struct IndexedDBReturnValue; 33 struct IndexedDBReturnValue;
34 struct IndexedDBValue; 34 struct IndexedDBValue;
35 35
36 class CONTENT_EXPORT IndexedDBCallbacks 36 class CONTENT_EXPORT IndexedDBCallbacks
37 : public base::RefCounted<IndexedDBCallbacks> { 37 : public base::RefCounted<IndexedDBCallbacks> {
38 public: 38 public:
39 // Destructively converts an IndexedDBValue to a Mojo Value.
40 static ::indexed_db::mojom::ValuePtr ConvertValue(IndexedDBValue* value);
41
39 IndexedDBCallbacks( 42 IndexedDBCallbacks(
40 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host, 43 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host,
41 const url::Origin& origin, 44 const url::Origin& origin,
42 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info); 45 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info);
43 46
44 virtual void OnError(const IndexedDBDatabaseError& error); 47 virtual void OnError(const IndexedDBDatabaseError& error);
45 48
46 // IndexedDBFactory::GetDatabaseNames 49 // IndexedDBFactory::GetDatabaseNames
47 virtual void OnSuccess(const std::vector<base::string16>& string); 50 virtual void OnSuccess(const std::vector<base::string16>& string);
48 51
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 129
127 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; 130 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_;
128 base::ThreadChecker thread_checker_; 131 base::ThreadChecker thread_checker_;
129 132
130 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); 133 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks);
131 }; 134 };
132 135
133 } // namespace content 136 } // namespace content
134 137
135 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 138 #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.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698