OLD | NEW |
---|---|
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 | 94 |
95 // IndexedDBDatabase::GetAll | 95 // IndexedDBDatabase::GetAll |
96 virtual void OnSuccessArray(std::vector<IndexedDBReturnValue>* values, | 96 virtual void OnSuccessArray(std::vector<IndexedDBReturnValue>* values, |
97 const IndexedDBKeyPath& key_path); | 97 const IndexedDBKeyPath& key_path); |
98 | 98 |
99 // IndexedDBDatabase::Put / IndexedDBCursor::Update | 99 // IndexedDBDatabase::Put / IndexedDBCursor::Update |
100 virtual void OnSuccess(const IndexedDBKey& key); | 100 virtual void OnSuccess(const IndexedDBKey& key); |
101 | 101 |
102 // IndexedDBDatabase::Count | 102 // IndexedDBDatabase::Count |
103 // IndexedDBFactory::DeleteDatabase | 103 // IndexedDBFactory::DeleteDatabase |
104 // IndexedDBDatabase::Delete | |
jsbell
2016/05/20 19:34:51
nit: DeleteRange
(the previous comment was incorr
palakj1
2016/05/23 17:17:40
Done
| |
104 virtual void OnSuccess(int64_t value); | 105 virtual void OnSuccess(int64_t value); |
105 | 106 |
106 // IndexedDBDatabase::Delete | |
107 // IndexedDBCursor::Continue / Advance (when complete) | 107 // IndexedDBCursor::Continue / Advance (when complete) |
108 virtual void OnSuccess(); | 108 virtual void OnSuccess(); |
109 | 109 |
110 blink::WebIDBDataLoss data_loss() const { return data_loss_; } | 110 blink::WebIDBDataLoss data_loss() const { return data_loss_; } |
111 | 111 |
112 void SetConnectionOpenStartTime(const base::TimeTicks& start_time); | 112 void SetConnectionOpenStartTime(const base::TimeTicks& start_time); |
113 | 113 |
114 protected: | 114 protected: |
115 virtual ~IndexedDBCallbacks(); | 115 virtual ~IndexedDBCallbacks(); |
116 | 116 |
(...skipping 23 matching lines...) Expand all Loading... | |
140 | 140 |
141 // The "blocked" event should be sent at most once per request. | 141 // The "blocked" event should be sent at most once per request. |
142 bool sent_blocked_; | 142 bool sent_blocked_; |
143 base::TimeTicks connection_open_start_time_; | 143 base::TimeTicks connection_open_start_time_; |
144 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); | 144 DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace content | 147 } // namespace content |
148 | 148 |
149 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 149 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |