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_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 10 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksBase); | 44 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksBase); |
45 }; | 45 }; |
46 | 46 |
47 // TODO(dgrogan): Remove this class and change the remaining specializations | 47 // TODO(dgrogan): Remove this class and change the remaining specializations |
48 // into subclasses of IndexedDBCallbacksBase. | 48 // into subclasses of IndexedDBCallbacksBase. |
49 template <class WebObjectType> | 49 template <class WebObjectType> |
50 class IndexedDBCallbacks : public IndexedDBCallbacksBase { | 50 class IndexedDBCallbacks : public IndexedDBCallbacksBase { |
51 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 51 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
52 }; | 52 }; |
53 | 53 |
54 class IndexedDBCallbacksTransaction : public IndexedDBCallbacksBase { | |
55 public: | |
56 IndexedDBCallbacksTransaction( | |
57 IndexedDBDispatcherHost* dispatcher_host, | |
58 int32 thread_id, | |
59 int32 response_id, | |
60 const GURL& origin_url); | |
61 | |
62 virtual void onSuccess(WebKit::WebIDBTransaction* idb_object); | |
63 | |
64 private: | |
65 GURL origin_url_; | |
66 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksTransaction); | |
67 }; | |
68 | |
69 class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase { | 54 class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase { |
70 public: | 55 public: |
71 IndexedDBCallbacksDatabase( | 56 IndexedDBCallbacksDatabase( |
72 IndexedDBDispatcherHost* dispatcher_host, | 57 IndexedDBDispatcherHost* dispatcher_host, |
73 int32 thread_id, | 58 int32 thread_id, |
74 int32 response_id, | 59 int32 response_id, |
75 const GURL& origin_url); | 60 const GURL& origin_url); |
76 | 61 |
77 virtual void onSuccess(WebKit::WebIDBDatabase* idb_object); | 62 virtual void onSuccess(WebKit::WebIDBDatabase* idb_object); |
78 virtual void onUpgradeNeeded( | 63 virtual void onUpgradeNeeded( |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void onSuccess(long long value); | 168 virtual void onSuccess(long long value); |
184 virtual void onSuccess(); | 169 virtual void onSuccess(); |
185 | 170 |
186 private: | 171 private: |
187 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 172 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
188 }; | 173 }; |
189 | 174 |
190 } // namespace content | 175 } // namespace content |
191 | 176 |
192 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 177 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |