| 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 17 matching lines...) Expand all Loading... |
| 28 WebFrame* web_frame, | 28 WebFrame* web_frame, |
| 29 const WebString& data_dir_unused) { | 29 const WebString& data_dir_unused) { |
| 30 IndexedDBDispatcher* dispatcher = | 30 IndexedDBDispatcher* dispatcher = |
| 31 IndexedDBDispatcher::ThreadSpecificInstance(); | 31 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 32 dispatcher->RequestIDBFactoryGetDatabaseNames( | 32 dispatcher->RequestIDBFactoryGetDatabaseNames( |
| 33 callbacks, origin.databaseIdentifier(), web_frame); | 33 callbacks, origin.databaseIdentifier(), web_frame); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void RendererWebIDBFactoryImpl::open( | 36 void RendererWebIDBFactoryImpl::open( |
| 37 const WebString& name, | 37 const WebString& name, |
| 38 long long version, |
| 38 WebIDBCallbacks* callbacks, | 39 WebIDBCallbacks* callbacks, |
| 39 const WebSecurityOrigin& origin, | 40 const WebSecurityOrigin& origin, |
| 40 WebFrame* web_frame, | 41 WebFrame* web_frame, |
| 41 const WebString& data_dir) { | 42 const WebString& data_dir) { |
| 42 // Don't send the data_dir. We know what we want on the Browser side of | 43 // Don't send the data_dir. We know what we want on the Browser side of |
| 43 // things. | 44 // things. |
| 44 IndexedDBDispatcher* dispatcher = | 45 IndexedDBDispatcher* dispatcher = |
| 45 IndexedDBDispatcher::ThreadSpecificInstance(); | 46 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 46 dispatcher->RequestIDBFactoryOpen( | 47 dispatcher->RequestIDBFactoryOpen( |
| 47 name, callbacks, origin.databaseIdentifier(), web_frame); | 48 name, version, callbacks, origin.databaseIdentifier(), web_frame); |
| 48 } | 49 } |
| 49 | 50 |
| 50 void RendererWebIDBFactoryImpl::deleteDatabase( | 51 void RendererWebIDBFactoryImpl::deleteDatabase( |
| 51 const WebString& name, | 52 const WebString& name, |
| 52 WebIDBCallbacks* callbacks, | 53 WebIDBCallbacks* callbacks, |
| 53 const WebSecurityOrigin& origin, | 54 const WebSecurityOrigin& origin, |
| 54 WebFrame* web_frame, | 55 WebFrame* web_frame, |
| 55 const WebString& data_dir) { | 56 const WebString& data_dir) { |
| 56 // Don't send the data_dir. We know what we want on the Browser side of | 57 // Don't send the data_dir. We know what we want on the Browser side of |
| 57 // things. | 58 // things. |
| 58 IndexedDBDispatcher* dispatcher = | 59 IndexedDBDispatcher* dispatcher = |
| 59 IndexedDBDispatcher::ThreadSpecificInstance(); | 60 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 60 dispatcher->RequestIDBFactoryDeleteDatabase( | 61 dispatcher->RequestIDBFactoryDeleteDatabase( |
| 61 name, callbacks, origin.databaseIdentifier(), web_frame); | 62 name, callbacks, origin.databaseIdentifier(), web_frame); |
| 62 } | 63 } |
| OLD | NEW |