| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 IndexedDBCallbacks( | 104 IndexedDBCallbacks( |
| 105 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 105 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
| 106 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 106 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
| 107 | 107 |
| 108 virtual void onSuccess(const WebKit::WebIDBKey& value); | 108 virtual void onSuccess(const WebKit::WebIDBKey& value); |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 111 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 // WebDOMStringList is implemented in WebKit as opposed to being an |
| 115 // interface Chromium implements. Thus we pass a const ___& version and thus |
| 116 // we need this specialization. |
| 117 template <> |
| 118 class IndexedDBCallbacks<WebKit::WebDOMStringList> |
| 119 : public IndexedDBCallbacksBase { |
| 120 public: |
| 121 IndexedDBCallbacks( |
| 122 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
| 123 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
| 124 |
| 125 virtual void onSuccess(const WebKit::WebDOMStringList& value); |
| 126 |
| 127 private: |
| 128 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 129 }; |
| 130 |
| 114 // WebSerializedScriptValue is implemented in WebKit as opposed to being an | 131 // WebSerializedScriptValue is implemented in WebKit as opposed to being an |
| 115 // interface Chromium implements. Thus we pass a const ___& version and thus | 132 // interface Chromium implements. Thus we pass a const ___& version and thus |
| 116 // we need this specialization. | 133 // we need this specialization. |
| 117 template <> | 134 template <> |
| 118 class IndexedDBCallbacks<WebKit::WebSerializedScriptValue> | 135 class IndexedDBCallbacks<WebKit::WebSerializedScriptValue> |
| 119 : public IndexedDBCallbacksBase { | 136 : public IndexedDBCallbacksBase { |
| 120 public: | 137 public: |
| 121 IndexedDBCallbacks( | 138 IndexedDBCallbacks( |
| 122 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 139 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
| 123 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 140 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
| 124 | 141 |
| 125 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 142 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
| 126 | 143 |
| 127 private: | 144 private: |
| 128 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 145 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 129 }; | 146 }; |
| 130 | 147 |
| 131 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 148 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| OLD | NEW |