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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey)); 2671 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey));
2672 if (!holder) 2672 if (!holder)
2673 return; 2673 return;
2674 holder->Release(old_route_id); 2674 holder->Release(old_route_id);
2675 } 2675 }
2676 2676
2677 void RenderProcessHostImpl::OnGpuSwitched() { 2677 void RenderProcessHostImpl::OnGpuSwitched() {
2678 RecomputeAndUpdateWebKitPreferences(); 2678 RecomputeAndUpdateWebKitPreferences();
2679 } 2679 }
2680 2680
2681 void RenderProcessHostImpl::Suspend() {
2682 Send(new ChildProcessMsg_Suspend());
2683 }
2684
2681 #if defined(ENABLE_WEBRTC) 2685 #if defined(ENABLE_WEBRTC)
2682 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { 2686 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) {
2683 BrowserThread::PostTask( 2687 BrowserThread::PostTask(
2684 BrowserThread::UI, FROM_HERE, 2688 BrowserThread::UI, FROM_HERE,
2685 base::Bind(&RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, 2689 base::Bind(&RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread,
2686 weak_factory_.GetWeakPtr(), id)); 2690 weak_factory_.GetWeakPtr(), id));
2687 } 2691 }
2688 2692
2689 void RenderProcessHostImpl::OnRegisterEventLogConsumer(int id) { 2693 void RenderProcessHostImpl::OnRegisterEventLogConsumer(int id) {
2690 BrowserThread::PostTask( 2694 BrowserThread::PostTask(
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2832
2829 // Skip widgets in other processes. 2833 // Skip widgets in other processes.
2830 if (rvh->GetProcess()->GetID() != GetID()) 2834 if (rvh->GetProcess()->GetID() != GetID())
2831 continue; 2835 continue;
2832 2836
2833 rvh->OnWebkitPreferencesChanged(); 2837 rvh->OnWebkitPreferencesChanged();
2834 } 2838 }
2835 } 2839 }
2836 2840
2837 } // namespace content 2841 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698