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

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

Issue 1386873003: OOPIFs: Transitioning MHTML generation from view-oriented to frame-oriented. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-generation-mgr-cleanup
Patch Set: Moving "using" declaration under a singly-included section of frame_messges.h Created 5 years 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 50 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
51 #include "content/browser/cache_storage/cache_storage_context_impl.h" 51 #include "content/browser/cache_storage/cache_storage_context_impl.h"
52 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" 52 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h"
53 #include "content/browser/child_process_security_policy_impl.h" 53 #include "content/browser/child_process_security_policy_impl.h"
54 #include "content/browser/device_sensors/device_light_message_filter.h" 54 #include "content/browser/device_sensors/device_light_message_filter.h"
55 #include "content/browser/device_sensors/device_motion_message_filter.h" 55 #include "content/browser/device_sensors/device_motion_message_filter.h"
56 #include "content/browser/device_sensors/device_orientation_absolute_message_fil ter.h" 56 #include "content/browser/device_sensors/device_orientation_absolute_message_fil ter.h"
57 #include "content/browser/device_sensors/device_orientation_message_filter.h" 57 #include "content/browser/device_sensors/device_orientation_message_filter.h"
58 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 58 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
59 #include "content/browser/dom_storage/dom_storage_message_filter.h" 59 #include "content/browser/dom_storage/dom_storage_message_filter.h"
60 #include "content/browser/download/mhtml_generation_manager.h"
61 #include "content/browser/fileapi/chrome_blob_storage_context.h" 60 #include "content/browser/fileapi/chrome_blob_storage_context.h"
62 #include "content/browser/fileapi/fileapi_message_filter.h" 61 #include "content/browser/fileapi/fileapi_message_filter.h"
63 #include "content/browser/frame_host/render_frame_message_filter.h" 62 #include "content/browser/frame_host/render_frame_message_filter.h"
64 #include "content/browser/geofencing/geofencing_dispatcher_host.h" 63 #include "content/browser/geofencing/geofencing_dispatcher_host.h"
65 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 64 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
66 #include "content/browser/gpu/compositor_util.h" 65 #include "content/browser/gpu/compositor_util.h"
67 #include "content/browser/gpu/gpu_data_manager_impl.h" 66 #include "content/browser/gpu/gpu_data_manager_impl.h"
68 #include "content/browser/gpu/gpu_process_host.h" 67 #include "content/browser/gpu/gpu_process_host.h"
69 #include "content/browser/gpu/shader_disk_cache.h" 68 #include "content/browser/gpu/shader_disk_cache.h"
70 #include "content/browser/histogram_message_filter.h" 69 #include "content/browser/histogram_message_filter.h"
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 mark_child_process_activity_time(); 1650 mark_child_process_activity_time();
1652 if (msg.routing_id() == MSG_ROUTING_CONTROL) { 1651 if (msg.routing_id() == MSG_ROUTING_CONTROL) {
1653 // Dispatch control messages. 1652 // Dispatch control messages.
1654 IPC_BEGIN_MESSAGE_MAP(RenderProcessHostImpl, msg) 1653 IPC_BEGIN_MESSAGE_MAP(RenderProcessHostImpl, msg)
1655 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest, 1654 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest,
1656 OnShutdownRequest) 1655 OnShutdownRequest)
1657 IPC_MESSAGE_HANDLER(RenderProcessHostMsg_SuddenTerminationChanged, 1656 IPC_MESSAGE_HANDLER(RenderProcessHostMsg_SuddenTerminationChanged,
1658 SuddenTerminationChanged) 1657 SuddenTerminationChanged)
1659 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, 1658 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
1660 OnUserMetricsRecordAction) 1659 OnUserMetricsRecordAction)
1661 IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML)
1662 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK) 1660 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK)
1663 #if defined(ENABLE_WEBRTC) 1661 #if defined(ENABLE_WEBRTC)
1664 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer, 1662 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer,
1665 OnRegisterAecDumpConsumer) 1663 OnRegisterAecDumpConsumer)
1666 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer, 1664 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer,
1667 OnUnregisterAecDumpConsumer) 1665 OnUnregisterAecDumpConsumer)
1668 #endif 1666 #endif
1669 // Adding single handlers for your service here is fine, but once your 1667 // Adding single handlers for your service here is fine, but once your
1670 // service needs more than one handler, please extract them into a new 1668 // service needs more than one handler, please extract them into a new
1671 // message filter and add that filter to CreateMessageFilters(). 1669 // message filter and add that filter to CreateMessageFilters().
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2555 } 2553 }
2556 2554
2557 void RenderProcessHostImpl::OnCloseACK(int old_route_id) { 2555 void RenderProcessHostImpl::OnCloseACK(int old_route_id) {
2558 SessionStorageHolder* holder = 2556 SessionStorageHolder* holder =
2559 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey)); 2557 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey));
2560 if (!holder) 2558 if (!holder)
2561 return; 2559 return;
2562 holder->Release(old_route_id); 2560 holder->Release(old_route_id);
2563 } 2561 }
2564 2562
2565 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
2566 bool mhtml_generation_in_renderer_succeeded = data_size >= 0;
2567 MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML(
2568 job_id, mhtml_generation_in_renderer_succeeded);
2569 }
2570
2571 void RenderProcessHostImpl::OnGpuSwitched() { 2563 void RenderProcessHostImpl::OnGpuSwitched() {
2572 // We are updating all widgets including swapped out ones. 2564 // We are updating all widgets including swapped out ones.
2573 scoped_ptr<RenderWidgetHostIterator> widgets( 2565 scoped_ptr<RenderWidgetHostIterator> widgets(
2574 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); 2566 RenderWidgetHostImpl::GetAllRenderWidgetHosts());
2575 while (RenderWidgetHost* widget = widgets->GetNextHost()) { 2567 while (RenderWidgetHost* widget = widgets->GetNextHost()) {
2576 RenderViewHost* rvh = RenderViewHost::From(widget); 2568 RenderViewHost* rvh = RenderViewHost::From(widget);
2577 if (!rvh) 2569 if (!rvh)
2578 continue; 2570 continue;
2579 2571
2580 // Skip widgets in other processes. 2572 // Skip widgets in other processes.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2670 void RenderProcessHostImpl::GetAudioOutputControllers( 2662 void RenderProcessHostImpl::GetAudioOutputControllers(
2671 const GetAudioOutputControllersCallback& callback) const { 2663 const GetAudioOutputControllersCallback& callback) const {
2672 audio_renderer_host()->GetOutputControllers(callback); 2664 audio_renderer_host()->GetOutputControllers(callback);
2673 } 2665 }
2674 2666
2675 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2667 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2676 return bluetooth_dispatcher_host_.get(); 2668 return bluetooth_dispatcher_host_.get();
2677 } 2669 }
2678 2670
2679 } // namespace content 2671 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698