Chromium Code Reviews| 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/indexed_db_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/threading/thread_local.h" | 8 #include "base/threading/thread_local.h" |
| 9 #include "content/common/indexed_db_messages.h" | 9 #include "content/common/indexed_db/indexed_db_messages.h" |
| 10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
| 11 #include "content/renderer/render_view_impl.h" | 11 #include "content/renderer/render_view_impl.h" |
| 12 #include "content/renderer/renderer_webidbcursor_impl.h" | 12 #include "content/renderer/indexed_db/renderer_webidbcursor_impl.h" |
|
jsbell
2011/12/16 23:47:57
Nit: includes out of order
| |
| 13 #include "content/renderer/renderer_webidbdatabase_impl.h" | 13 #include "content/renderer/indexed_db/renderer_webidbdatabase_impl.h" |
| 14 #include "content/renderer/renderer_webidbindex_impl.h" | 14 #include "content/renderer/indexed_db/renderer_webidbindex_impl.h" |
| 15 #include "content/renderer/renderer_webidbobjectstore_impl.h" | 15 #include "content/renderer/indexed_db/renderer_webidbobjectstore_impl.h" |
| 16 #include "content/renderer/renderer_webidbtransaction_impl.h" | 16 #include "content/renderer/indexed_db/renderer_webidbtransaction_impl.h" |
| 17 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac ks.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h " | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h " |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" |
| 22 | 22 |
| 23 using base::ThreadLocalPointer; | 23 using base::ThreadLocalPointer; |
| 24 using WebKit::WebDOMStringList; | 24 using WebKit::WebDOMStringList; |
| 25 using WebKit::WebExceptionCode; | 25 using WebKit::WebExceptionCode; |
| 26 using WebKit::WebFrame; | 26 using WebKit::WebFrame; |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 678 } | 678 } |
| 679 | 679 |
| 680 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { | 680 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { |
| 681 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; | 681 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; |
| 682 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { | 682 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { |
| 683 if (i->first == exception_cursor_id) | 683 if (i->first == exception_cursor_id) |
| 684 continue; | 684 continue; |
| 685 i->second->ResetPrefetchCache(); | 685 i->second->ResetPrefetchCache(); |
| 686 } | 686 } |
| 687 } | 687 } |
| OLD | NEW |