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/browser/in_process_webkit/dom_storage_message_filter.h" | 5 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/nullable_string16.h" | 8 #include "base/nullable_string16.h" |
9 #include "content/browser/in_process_webkit/dom_storage_area.h" | 9 #include "content/browser/in_process_webkit/dom_storage_area.h" |
10 #include "content/browser/in_process_webkit/dom_storage_context.h" | 10 #include "content/browser/in_process_webkit/dom_storage_context.h" |
11 #include "content/browser/in_process_webkit/dom_storage_namespace.h" | 11 #include "content/browser/in_process_webkit/dom_storage_namespace.h" |
12 #include "content/common/dom_storage_messages.h" | 12 #include "content/common/dom_storage_messages.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
| 16 using content::BrowserThread; |
16 using WebKit::WebStorageArea; | 17 using WebKit::WebStorageArea; |
17 | 18 |
18 DOMStorageMessageFilter* DOMStorageMessageFilter::storage_event_message_filter = | 19 DOMStorageMessageFilter* DOMStorageMessageFilter::storage_event_message_filter = |
19 NULL; | 20 NULL; |
20 const GURL* DOMStorageMessageFilter::storage_event_url_ = NULL; | 21 const GURL* DOMStorageMessageFilter::storage_event_url_ = NULL; |
21 | 22 |
22 DOMStorageMessageFilter:: | 23 DOMStorageMessageFilter:: |
23 ScopedStorageEventContext::ScopedStorageEventContext( | 24 ScopedStorageEventContext::ScopedStorageEventContext( |
24 DOMStorageMessageFilter* dispatcher_message_filter, const GURL* url) { | 25 DOMStorageMessageFilter* dispatcher_message_filter, const GURL* url) { |
25 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); | 26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 const DOMStorageContext::MessageFilterSet* set = | 207 const DOMStorageContext::MessageFilterSet* set = |
207 Context()->GetMessageFilterSet(); | 208 Context()->GetMessageFilterSet(); |
208 DOMStorageContext::MessageFilterSet::const_iterator cur = set->begin(); | 209 DOMStorageContext::MessageFilterSet::const_iterator cur = set->begin(); |
209 while (cur != set->end()) { | 210 while (cur != set->end()) { |
210 // The renderer that generates the event handles it itself. | 211 // The renderer that generates the event handles it itself. |
211 if (*cur != this) | 212 if (*cur != this) |
212 (*cur)->Send(new DOMStorageMsg_Event(params)); | 213 (*cur)->Send(new DOMStorageMsg_Event(params)); |
213 ++cur; | 214 ++cur; |
214 } | 215 } |
215 } | 216 } |
OLD | NEW |