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

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: added comments and bug link 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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ConvertAndEraseValue(
40 IndexedDBValue* value);
41
38 IndexedDBCallbacks( 42 IndexedDBCallbacks(
39 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host, 43 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host,
40 const url::Origin& origin, 44 const url::Origin& origin,
41 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info); 45 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info);
42 46
43 virtual void OnError(const IndexedDBDatabaseError& error); 47 virtual void OnError(const IndexedDBDatabaseError& error);
44 48
45 // IndexedDBFactory::GetDatabaseNames 49 // IndexedDBFactory::GetDatabaseNames
46 virtual void OnSuccess(const std::vector<base::string16>& string); 50 virtual void OnSuccess(const std::vector<base::string16>& string);
47 51
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 122
119 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; 123 std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_;
120 base::ThreadChecker thread_checker_; 124 base::ThreadChecker thread_checker_;
121 125
122 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); 126 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks);
123 }; 127 };
124 128
125 } // namespace content 129 } // namespace content
126 130
127 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 131 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698