| 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 14 matching lines...) Expand all  Loading... | 
| 25 | 25 | 
| 26 namespace content { | 26 namespace content { | 
| 27 class IndexedDBBlobInfo; | 27 class IndexedDBBlobInfo; | 
| 28 class IndexedDBConnection; | 28 class IndexedDBConnection; | 
| 29 class IndexedDBCursor; | 29 class IndexedDBCursor; | 
| 30 class IndexedDBDatabase; | 30 class IndexedDBDatabase; | 
| 31 class IndexedDBDatabaseCallbacks; | 31 class IndexedDBDatabaseCallbacks; | 
| 32 struct IndexedDBDataLossInfo; | 32 struct IndexedDBDataLossInfo; | 
| 33 struct IndexedDBDatabaseMetadata; | 33 struct IndexedDBDatabaseMetadata; | 
| 34 struct IndexedDBReturnValue; | 34 struct IndexedDBReturnValue; | 
|  | 35 class IndexedDBTransaction; | 
| 35 struct IndexedDBValue; | 36 struct IndexedDBValue; | 
| 36 | 37 | 
| 37 class CONTENT_EXPORT IndexedDBCallbacks | 38 class CONTENT_EXPORT IndexedDBCallbacks | 
| 38     : public base::RefCounted<IndexedDBCallbacks> { | 39     : public base::RefCounted<IndexedDBCallbacks> { | 
| 39  public: | 40  public: | 
| 40   // Simple payload responses | 41   // Simple payload responses | 
| 41   IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 42   IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 
| 42                      int32_t ipc_thread_id, | 43                      int32_t ipc_thread_id, | 
| 43                      int32_t ipc_callbacks_id); | 44                      int32_t ipc_callbacks_id); | 
| 44 | 45 | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 59   // IndexedDBFactory::GetDatabaseNames | 60   // IndexedDBFactory::GetDatabaseNames | 
| 60   virtual void OnSuccess(const std::vector<base::string16>& string); | 61   virtual void OnSuccess(const std::vector<base::string16>& string); | 
| 61 | 62 | 
| 62   // IndexedDBFactory::Open / DeleteDatabase | 63   // IndexedDBFactory::Open / DeleteDatabase | 
| 63   virtual void OnBlocked(int64_t existing_version); | 64   virtual void OnBlocked(int64_t existing_version); | 
| 64 | 65 | 
| 65   // IndexedDBFactory::Open | 66   // IndexedDBFactory::Open | 
| 66   virtual void OnUpgradeNeeded( | 67   virtual void OnUpgradeNeeded( | 
| 67       int64_t old_version, | 68       int64_t old_version, | 
| 68       std::unique_ptr<IndexedDBConnection> connection, | 69       std::unique_ptr<IndexedDBConnection> connection, | 
|  | 70       IndexedDBTransaction* transaction, | 
| 69       const content::IndexedDBDatabaseMetadata& metadata, | 71       const content::IndexedDBDatabaseMetadata& metadata, | 
| 70       const IndexedDBDataLossInfo& data_loss_info); | 72       const IndexedDBDataLossInfo& data_loss_info); | 
| 71   virtual void OnSuccess(std::unique_ptr<IndexedDBConnection> connection, | 73   virtual void OnSuccess(std::unique_ptr<IndexedDBConnection> connection, | 
| 72                          const content::IndexedDBDatabaseMetadata& metadata); | 74                          const content::IndexedDBDatabaseMetadata& metadata); | 
| 73 | 75 | 
| 74   // IndexedDBDatabase::OpenCursor | 76   // IndexedDBDatabase::OpenCursor | 
| 75   virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor, | 77   virtual void OnSuccess(std::unique_ptr<IndexedDBCursor> cursor, | 
| 76                          const IndexedDBKey& key, | 78                          const IndexedDBKey& key, | 
| 77                          const IndexedDBKey& primary_key, | 79                          const IndexedDBKey& primary_key, | 
| 78                          IndexedDBValue* value); | 80                          IndexedDBValue* value); | 
| 79 | 81 | 
| 80   // IndexedDBCursor::Continue / Advance | 82   // IndexedDBCursor::Continue / Advance | 
| 81   virtual void OnSuccess(const IndexedDBKey& key, | 83   virtual void OnSuccess(const IndexedDBKey& key, | 
| 82                          const IndexedDBKey& primary_key, | 84                          const IndexedDBKey& primary_key, | 
| 83                          IndexedDBValue* value); | 85                          IndexedDBValue* value); | 
| 84 | 86 | 
| 85   // IndexedDBCursor::PrefetchContinue | 87   // IndexedDBCursor::PrefetchContinue | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 150 | 152 | 
| 151   std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; | 153   std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_; | 
| 152   base::ThreadChecker thread_checker_; | 154   base::ThreadChecker thread_checker_; | 
| 153 | 155 | 
| 154   DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); | 156   DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks); | 
| 155 }; | 157 }; | 
| 156 | 158 | 
| 157 }  // namespace content | 159 }  // namespace content | 
| 158 | 160 | 
| 159 #endif  // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 161 #endif  // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 
| OLD | NEW | 
|---|