OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/render_messages.h" | |
8 #include "content/renderer/render_thread.h" | 7 #include "content/renderer/render_thread.h" |
9 #include "content/renderer/indexed_db_dispatcher.h" | 8 #include "content/renderer/indexed_db_dispatcher.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
12 | 11 |
13 using WebKit::WebDOMStringList; | 12 using WebKit::WebDOMStringList; |
14 using WebKit::WebFrame; | 13 using WebKit::WebFrame; |
15 using WebKit::WebIDBCallbacks; | 14 using WebKit::WebIDBCallbacks; |
16 using WebKit::WebIDBDatabase; | 15 using WebKit::WebIDBDatabase; |
17 using WebKit::WebSecurityOrigin; | 16 using WebKit::WebSecurityOrigin; |
(...skipping 27 matching lines...) Expand all Loading... |
45 const WebSecurityOrigin& origin, | 44 const WebSecurityOrigin& origin, |
46 WebFrame* web_frame, | 45 WebFrame* web_frame, |
47 const WebString& data_dir) { | 46 const WebString& data_dir) { |
48 // Don't send the data_dir. We know what we want on the Browser side of | 47 // Don't send the data_dir. We know what we want on the Browser side of |
49 // things. | 48 // things. |
50 IndexedDBDispatcher* dispatcher = | 49 IndexedDBDispatcher* dispatcher = |
51 RenderThread::current()->indexed_db_dispatcher(); | 50 RenderThread::current()->indexed_db_dispatcher(); |
52 dispatcher->RequestIDBFactoryDeleteDatabase( | 51 dispatcher->RequestIDBFactoryDeleteDatabase( |
53 name, callbacks, origin.databaseIdentifier(), web_frame); | 52 name, callbacks, origin.databaseIdentifier(), web_frame); |
54 } | 53 } |
OLD | NEW |