OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // The code the following two classes share. | 39 // The code the following two classes share. |
40 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks { | 40 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks { |
41 public: | 41 public: |
42 IndexedDBCallbacksBase(IndexedDBDispatcherHost* dispatcher_host, | 42 IndexedDBCallbacksBase(IndexedDBDispatcherHost* dispatcher_host, |
43 int32 response_id); | 43 int32 response_id); |
44 | 44 |
45 virtual ~IndexedDBCallbacksBase(); | 45 virtual ~IndexedDBCallbacksBase(); |
46 | 46 |
47 virtual void onError(const WebKit::WebIDBDatabaseError& error); | 47 virtual void onError(const WebKit::WebIDBDatabaseError& error); |
| 48 virtual void onBlocked(); |
48 | 49 |
49 protected: | 50 protected: |
50 IndexedDBDispatcherHost* dispatcher_host() const { | 51 IndexedDBDispatcherHost* dispatcher_host() const { |
51 return dispatcher_host_.get(); | 52 return dispatcher_host_.get(); |
52 } | 53 } |
53 int32 response_id() const { return response_id_; } | 54 int32 response_id() const { return response_id_; } |
54 | 55 |
55 private: | 56 private: |
56 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 57 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
57 int32 response_id_; | 58 int32 response_id_; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 virtual void onComplete(); | 144 virtual void onComplete(); |
144 | 145 |
145 virtual void onTimeout(); | 146 virtual void onTimeout(); |
146 | 147 |
147 private: | 148 private: |
148 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 149 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
149 int transaction_id_; | 150 int transaction_id_; |
150 }; | 151 }; |
151 | 152 |
152 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 153 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |