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 #include "content/renderer/renderer_webidbfactory_impl.h" | 5 #include "content/renderer/renderer_webidbfactory_impl.h" |
6 | 6 |
7 #include "content/renderer/render_thread_impl.h" | 7 #include "content/renderer/render_thread_impl.h" |
8 #include "content/renderer/indexed_db_dispatcher.h" | 8 #include "content/renderer/indexed_db_dispatcher.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/WebString.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
11 | 11 |
12 using WebKit::WebDOMStringList; | 12 using WebKit::WebDOMStringList; |
13 using WebKit::WebFrame; | 13 using WebKit::WebFrame; |
14 using WebKit::WebIDBCallbacks; | 14 using WebKit::WebIDBCallbacks; |
15 using WebKit::WebIDBDatabase; | 15 using WebKit::WebIDBDatabase; |
16 using WebKit::WebSecurityOrigin; | 16 using WebKit::WebSecurityOrigin; |
17 using WebKit::WebString; | 17 using WebKit::WebString; |
18 | 18 |
19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() { | 19 RendererWebIDBFactoryImpl::RendererWebIDBFactoryImpl() { |
20 } | 20 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const WebSecurityOrigin& origin, | 53 const WebSecurityOrigin& origin, |
54 WebFrame* web_frame, | 54 WebFrame* web_frame, |
55 const WebString& data_dir) { | 55 const WebString& data_dir) { |
56 // Don't send the data_dir. We know what we want on the Browser side of | 56 // Don't send the data_dir. We know what we want on the Browser side of |
57 // things. | 57 // things. |
58 IndexedDBDispatcher* dispatcher = | 58 IndexedDBDispatcher* dispatcher = |
59 RenderThreadImpl::current()->indexed_db_dispatcher(); | 59 RenderThreadImpl::current()->indexed_db_dispatcher(); |
60 dispatcher->RequestIDBFactoryDeleteDatabase( | 60 dispatcher->RequestIDBFactoryDeleteDatabase( |
61 name, callbacks, origin.databaseIdentifier(), web_frame); | 61 name, callbacks, origin.databaseIdentifier(), web_frame); |
62 } | 62 } |
OLD | NEW |