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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 10005049: DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « content/common/dom_storage_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 content::RenderView::ForEach(&zoomer); 816 content::RenderView::ForEach(&zoomer);
817 } 817 }
818 818
819 void RenderThreadImpl::OnDOMStorageEvent( 819 void RenderThreadImpl::OnDOMStorageEvent(
820 const DOMStorageMsg_Event_Params& params) { 820 const DOMStorageMsg_Event_Params& params) {
821 if (!dom_storage_event_dispatcher_.get()) { 821 if (!dom_storage_event_dispatcher_.get()) {
822 EnsureWebKitInitialized(); 822 EnsureWebKitInitialized();
823 dom_storage_event_dispatcher_.reset(WebStorageEventDispatcher::create()); 823 dom_storage_event_dispatcher_.reset(WebStorageEventDispatcher::create());
824 } 824 }
825 dom_storage_event_dispatcher_->dispatchStorageEvent(params.key, 825 dom_storage_event_dispatcher_->dispatchStorageEvent(params.key,
826 params.old_value, params.new_value, params.origin, params.url, 826 params.old_value, params.new_value, params.origin, params.page_url,
827 params.storage_type == DOM_STORAGE_LOCAL); 827 params.namespace_id == dom_storage::kLocalStorageNamespaceId);
828 } 828 }
829 829
830 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { 830 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
831 ObserverListBase<RenderProcessObserver>::Iterator it(observers_); 831 ObserverListBase<RenderProcessObserver>::Iterator it(observers_);
832 RenderProcessObserver* observer; 832 RenderProcessObserver* observer;
833 while ((observer = it.GetNext()) != NULL) { 833 while ((observer = it.GetNext()) != NULL) {
834 if (observer->OnControlMessageReceived(msg)) 834 if (observer->OnControlMessageReceived(msg))
835 return true; 835 return true;
836 } 836 }
837 837
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 986
987 scoped_refptr<base::MessageLoopProxy> 987 scoped_refptr<base::MessageLoopProxy>
988 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 988 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
989 DCHECK(message_loop() == MessageLoop::current()); 989 DCHECK(message_loop() == MessageLoop::current());
990 if (!file_thread_.get()) { 990 if (!file_thread_.get()) {
991 file_thread_.reset(new base::Thread("Renderer::FILE")); 991 file_thread_.reset(new base::Thread("Renderer::FILE"));
992 file_thread_->Start(); 992 file_thread_->Start();
993 } 993 }
994 return file_thread_->message_loop_proxy(); 994 return file_thread_->message_loop_proxy();
995 } 995 }
OLDNEW
« no previous file with comments | « content/common/dom_storage_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698