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