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/indexed_db_dispatcher.h" | 5 #include "content/renderer/indexed_db_dispatcher.h" |
6 | 6 |
7 #include "content/common/indexed_db_messages.h" | 7 #include "content/common/indexed_db_messages.h" |
8 #include "content/renderer/render_thread_impl.h" | 8 #include "content/renderer/render_thread_impl.h" |
9 #include "content/renderer/render_view_impl.h" | 9 #include "content/renderer/render_view_impl.h" |
10 #include "content/renderer/renderer_webidbcursor_impl.h" | 10 #include "content/renderer/renderer_webidbcursor_impl.h" |
11 #include "content/renderer/renderer_webidbdatabase_impl.h" | 11 #include "content/renderer/renderer_webidbdatabase_impl.h" |
12 #include "content/renderer/renderer_webidbindex_impl.h" | 12 #include "content/renderer/renderer_webidbindex_impl.h" |
13 #include "content/renderer/renderer_webidbobjectstore_impl.h" | 13 #include "content/renderer/renderer_webidbobjectstore_impl.h" |
14 #include "content/renderer/renderer_webidbtransaction_impl.h" | 14 #include "content/renderer/renderer_webidbtransaction_impl.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
22 | 22 |
23 using WebKit::WebDOMStringList; | 23 using WebKit::WebDOMStringList; |
24 using WebKit::WebExceptionCode; | 24 using WebKit::WebExceptionCode; |
25 using WebKit::WebFrame; | 25 using WebKit::WebFrame; |
26 using WebKit::WebIDBCallbacks; | 26 using WebKit::WebIDBCallbacks; |
27 using WebKit::WebIDBKeyRange; | 27 using WebKit::WebIDBKeyRange; |
28 using WebKit::WebIDBDatabase; | 28 using WebKit::WebIDBDatabase; |
29 using WebKit::WebIDBDatabaseCallbacks; | 29 using WebKit::WebIDBDatabaseCallbacks; |
30 using WebKit::WebIDBDatabaseError; | 30 using WebKit::WebIDBDatabaseError; |
31 using WebKit::WebIDBTransaction; | 31 using WebKit::WebIDBTransaction; |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 560 } |
561 | 561 |
562 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { | 562 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { |
563 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; | 563 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; |
564 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { | 564 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { |
565 if (i->first == exception_cursor_id) | 565 if (i->first == exception_cursor_id) |
566 continue; | 566 continue; |
567 i->second->ResetPrefetchCache(); | 567 i->second->ResetPrefetchCache(); |
568 } | 568 } |
569 } | 569 } |
OLD | NEW |