| 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 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" |
| 6 | 6 |
| 7 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 7 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
| 8 #include "content/common/child_thread.h" | 8 #include "content/common/child_thread.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 WebIDBCallbacks* callbacks, | 27 WebIDBCallbacks* callbacks, |
| 28 const WebSecurityOrigin& origin, | 28 const WebSecurityOrigin& origin, |
| 29 WebFrame* web_frame, | 29 WebFrame* web_frame, |
| 30 const WebString& data_dir_unused) { | 30 const WebString& data_dir_unused) { |
| 31 IndexedDBDispatcher* dispatcher = | 31 IndexedDBDispatcher* dispatcher = |
| 32 IndexedDBDispatcher::ThreadSpecificInstance(); | 32 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 33 dispatcher->RequestIDBFactoryGetDatabaseNames( | 33 dispatcher->RequestIDBFactoryGetDatabaseNames( |
| 34 callbacks, origin.databaseIdentifier(), web_frame); | 34 callbacks, origin.databaseIdentifier(), web_frame); |
| 35 } | 35 } |
| 36 | 36 |
| 37 // TODO(jsbell): Remove this overload when WK90411 rolls. | |
| 38 void RendererWebIDBFactoryImpl::open( | |
| 39 const WebString& name, | |
| 40 long long version, | |
| 41 WebIDBCallbacks* callbacks, | |
| 42 const WebSecurityOrigin& origin, | |
| 43 WebFrame* web_frame, | |
| 44 const WebString& data_dir) { | |
| 45 // Don't send the data_dir. We know what we want on the Browser side of | |
| 46 // things. | |
| 47 IndexedDBDispatcher* dispatcher = | |
| 48 IndexedDBDispatcher::ThreadSpecificInstance(); | |
| 49 dispatcher->RequestIDBFactoryOpen( | |
| 50 name, version, callbacks, origin.databaseIdentifier(), web_frame); | |
| 51 } | |
| 52 | |
| 53 void RendererWebIDBFactoryImpl::open( | 37 void RendererWebIDBFactoryImpl::open( |
| 54 const WebString& name, | 38 const WebString& name, |
| 55 long long version, | 39 long long version, |
| 56 WebIDBCallbacks* callbacks, | 40 WebIDBCallbacks* callbacks, |
| 57 WebIDBDatabaseCallbacks* database_callbacks, | 41 WebIDBDatabaseCallbacks* database_callbacks, |
| 58 const WebSecurityOrigin& origin, | 42 const WebSecurityOrigin& origin, |
| 59 WebFrame* web_frame, | 43 WebFrame* web_frame, |
| 60 const WebString& data_dir) { | 44 const WebString& data_dir) { |
| 61 // Don't send the data_dir. We know what we want on the Browser side of | 45 // Don't send the data_dir. We know what we want on the Browser side of |
| 62 // things. | 46 // things. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 const WebSecurityOrigin& origin, | 57 const WebSecurityOrigin& origin, |
| 74 WebFrame* web_frame, | 58 WebFrame* web_frame, |
| 75 const WebString& data_dir) { | 59 const WebString& data_dir) { |
| 76 // Don't send the data_dir. We know what we want on the Browser side of | 60 // Don't send the data_dir. We know what we want on the Browser side of |
| 77 // things. | 61 // things. |
| 78 IndexedDBDispatcher* dispatcher = | 62 IndexedDBDispatcher* dispatcher = |
| 79 IndexedDBDispatcher::ThreadSpecificInstance(); | 63 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 80 dispatcher->RequestIDBFactoryDeleteDatabase( | 64 dispatcher->RequestIDBFactoryDeleteDatabase( |
| 81 name, callbacks, origin.databaseIdentifier(), web_frame); | 65 name, callbacks, origin.databaseIdentifier(), web_frame); |
| 82 } | 66 } |
| OLD | NEW |