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/renderer/indexed_db/indexed_db_dispatcher.h" | 5 #include "content/common/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/indexed_db_messages.h" | 9 #include "content/common/indexed_db/indexed_db_messages.h" |
10 #include "content/renderer/indexed_db/renderer_webidbcursor_impl.h" | 10 #include "content/common/indexed_db/proxy_webidbcursor_impl.h" |
11 #include "content/renderer/indexed_db/renderer_webidbdatabase_impl.h" | 11 #include "content/common/indexed_db/proxy_webidbdatabase_impl.h" |
12 #include "content/renderer/indexed_db/renderer_webidbindex_impl.h" | 12 #include "content/common/indexed_db/proxy_webidbindex_impl.h" |
13 #include "content/renderer/indexed_db/renderer_webidbobjectstore_impl.h" | 13 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" |
14 #include "content/renderer/indexed_db/renderer_webidbtransaction_impl.h" | 14 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" |
15 #include "content/renderer/render_thread_impl.h" | 15 #include "content/common/child_thread.h" |
jsbell
2012/02/10 18:57:29
Nit: include ordering
dgrogan
2012/02/10 19:57:20
Done. (I thought we had a presubmit check for tha
| |
16 #include "content/renderer/render_view_impl.h" | 16 #include "content/renderer/render_view_impl.h" |
dgrogan
2012/02/10 02:22:30
This is the only layer violation that I know of.
jsbell
2012/02/10 18:57:29
And only used for the RenderViewImpl::FromWebView(
dgrogan
2012/02/10 19:57:20
That's right.
| |
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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
679 } | 679 } |
680 | 680 |
681 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { | 681 void IndexedDBDispatcher::ResetCursorPrefetchCaches(int32 exception_cursor_id) { |
682 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; | 682 typedef std::map<int32, RendererWebIDBCursorImpl*>::iterator Iterator; |
683 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { | 683 for (Iterator i = cursors_.begin(); i != cursors_.end(); ++i) { |
684 if (i->first == exception_cursor_id) | 684 if (i->first == exception_cursor_id) |
685 continue; | 685 continue; |
686 i->second->ResetPrefetchCache(); | 686 i->second->ResetPrefetchCache(); |
687 } | 687 } |
688 } | 688 } |
OLD | NEW |