| 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_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 11 | 12 |
| 12 namespace WebKit { | 13 namespace WebKit { |
| 13 class WebFrame; | 14 class WebFrame; |
| 14 class WebSecurityOrigin; | 15 class WebSecurityOrigin; |
| 15 class WebString; | 16 class WebString; |
| 16 } | 17 } |
| 17 | 18 |
| 18 class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory { | 19 class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory { |
| 19 public: | 20 public: |
| 20 RendererWebIDBFactoryImpl(); | 21 RendererWebIDBFactoryImpl(); |
| 21 virtual ~RendererWebIDBFactoryImpl(); | 22 virtual ~RendererWebIDBFactoryImpl(); |
| 22 | 23 |
| 23 // See WebIDBFactory.h for documentation on these functions. | 24 // See WebIDBFactory.h for documentation on these functions. |
| 24 virtual void getDatabaseNames( | 25 virtual void getDatabaseNames( |
| 25 WebKit::WebIDBCallbacks* callbacks, | 26 WebKit::WebIDBCallbacks* callbacks, |
| 26 const WebKit::WebSecurityOrigin& origin, | 27 const WebKit::WebSecurityOrigin& origin, |
| 27 WebKit::WebFrame* web_frame, | 28 WebKit::WebFrame* web_frame, |
| 28 const WebKit::WebString& data_dir); | 29 const WebKit::WebString& data_dir); |
| 29 | 30 |
| 31 // TODO(jsbell): Remove this overload when WK94011 rolls. |
| 30 virtual void open( | 32 virtual void open( |
| 31 const WebKit::WebString& name, | 33 const WebKit::WebString& name, |
| 32 long long version, | 34 long long version, |
| 33 WebKit::WebIDBCallbacks* callbacks, | 35 WebKit::WebIDBCallbacks* callbacks, |
| 34 const WebKit::WebSecurityOrigin& origin, | 36 const WebKit::WebSecurityOrigin& origin, |
| 35 WebKit::WebFrame* web_frame, | 37 WebKit::WebFrame* web_frame, |
| 36 const WebKit::WebString& data_dir); | 38 const WebKit::WebString& data_dir); |
| 39 virtual void open( |
| 40 const WebKit::WebString& name, |
| 41 long long version, |
| 42 WebKit::WebIDBCallbacks* callbacks, |
| 43 WebKit::WebIDBDatabaseCallbacks* databaseCallbacks, |
| 44 const WebKit::WebSecurityOrigin& origin, |
| 45 WebKit::WebFrame* web_frame, |
| 46 const WebKit::WebString& data_dir); |
| 37 virtual void deleteDatabase( | 47 virtual void deleteDatabase( |
| 38 const WebKit::WebString& name, | 48 const WebKit::WebString& name, |
| 39 WebKit::WebIDBCallbacks* callbacks, | 49 WebKit::WebIDBCallbacks* callbacks, |
| 40 const WebKit::WebSecurityOrigin& origin, | 50 const WebKit::WebSecurityOrigin& origin, |
| 41 WebKit::WebFrame* web_frame, | 51 WebKit::WebFrame* web_frame, |
| 42 const WebKit::WebString& data_dir); | 52 const WebKit::WebString& data_dir); |
| 43 }; | 53 }; |
| 44 | 54 |
| 45 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ | 55 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_ |
| OLD | NEW |