Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Side by Side Diff: content/browser/in_process_webkit/dom_storage_message_filter.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698