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

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

Issue 8418043: Temporary code to track down increase in renderer crashes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | no next file » | 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) 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/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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForCurrentURL, 656 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForCurrentURL,
657 OnSetZoomLevelForCurrentURL) 657 OnSetZoomLevelForCurrentURL)
658 IPC_MESSAGE_HANDLER(ViewMsg_SetNextPageID, OnSetNextPageID) 658 IPC_MESSAGE_HANDLER(ViewMsg_SetNextPageID, OnSetNextPageID)
659 IPC_MESSAGE_HANDLER(ViewMsg_SetCSSColors, OnSetCSSColors) 659 IPC_MESSAGE_HANDLER(ViewMsg_SetCSSColors, OnSetCSSColors)
660 // TODO(port): removed from render_messages_internal.h; 660 // TODO(port): removed from render_messages_internal.h;
661 // is there a new non-windows message I should add here? 661 // is there a new non-windows message I should add here?
662 IPC_MESSAGE_HANDLER(ViewMsg_New, OnCreateNewView) 662 IPC_MESSAGE_HANDLER(ViewMsg_New, OnCreateNewView)
663 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) 663 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache)
664 IPC_MESSAGE_HANDLER(ViewMsg_NetworkStateChanged, OnNetworkStateChanged) 664 IPC_MESSAGE_HANDLER(ViewMsg_NetworkStateChanged, OnNetworkStateChanged)
665 IPC_MESSAGE_HANDLER(DOMStorageMsg_Event, OnDOMStorageEvent) 665 IPC_MESSAGE_HANDLER(DOMStorageMsg_Event, OnDOMStorageEvent)
666 IPC_MESSAGE_HANDLER(ViewMsg_TempCrashWithData, OnTempCrashWithData)
666 IPC_MESSAGE_UNHANDLED(handled = false) 667 IPC_MESSAGE_UNHANDLED(handled = false)
667 IPC_END_MESSAGE_MAP() 668 IPC_END_MESSAGE_MAP()
668 return handled; 669 return handled;
669 } 670 }
670 671
671 void RenderThreadImpl::OnSetNextPageID(int32 next_page_id) { 672 void RenderThreadImpl::OnSetNextPageID(int32 next_page_id) {
672 // This should only be called at process initialization time, so we shouldn't 673 // This should only be called at process initialization time, so we shouldn't
673 // have to worry about thread-safety. 674 // have to worry about thread-safety.
674 RenderViewImpl::SetNextPageID(next_page_id); 675 RenderViewImpl::SetNextPageID(next_page_id);
675 } 676 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 plugin_refresh_allowed_ = false; 770 plugin_refresh_allowed_ = false;
770 WebKit::resetPluginCache(reload_pages); 771 WebKit::resetPluginCache(reload_pages);
771 plugin_refresh_allowed_ = true; 772 plugin_refresh_allowed_ = true;
772 } 773 }
773 774
774 void RenderThreadImpl::OnNetworkStateChanged(bool online) { 775 void RenderThreadImpl::OnNetworkStateChanged(bool online) {
775 EnsureWebKitInitialized(); 776 EnsureWebKitInitialized();
776 WebNetworkStateNotifier::setOnLine(online); 777 WebNetworkStateNotifier::setOnLine(online);
777 } 778 }
778 779
780 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) {
781 content::GetContentClient()->SetActiveURL(data);
782 CHECK(false);
783 }
784
779 scoped_refptr<base::MessageLoopProxy> 785 scoped_refptr<base::MessageLoopProxy>
780 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 786 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
781 DCHECK(message_loop() == MessageLoop::current()); 787 DCHECK(message_loop() == MessageLoop::current());
782 if (!file_thread_.get()) { 788 if (!file_thread_.get()) {
783 file_thread_.reset(new base::Thread("Renderer::FILE")); 789 file_thread_.reset(new base::Thread("Renderer::FILE"));
784 file_thread_->Start(); 790 file_thread_->Start();
785 } 791 }
786 return file_thread_->message_loop_proxy(); 792 return file_thread_->message_loop_proxy();
787 } 793 }
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698