OLD | NEW |
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 // 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/browser_render_process_host.h" | 8 #include "content/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "content/browser/renderer_host/resource_message_filter.h" | 63 #include "content/browser/renderer_host/resource_message_filter.h" |
64 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 64 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
65 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 65 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
66 #include "content/browser/resolve_proxy_msg_helper.h" | 66 #include "content/browser/resolve_proxy_msg_helper.h" |
67 #include "content/browser/speech/speech_input_dispatcher_host.h" | 67 #include "content/browser/speech/speech_input_dispatcher_host.h" |
68 #include "content/browser/trace_message_filter.h" | 68 #include "content/browser/trace_message_filter.h" |
69 #include "content/browser/user_metrics.h" | 69 #include "content/browser/user_metrics.h" |
70 #include "content/browser/worker_host/worker_message_filter.h" | 70 #include "content/browser/worker_host/worker_message_filter.h" |
71 #include "content/common/child_process_info.h" | 71 #include "content/common/child_process_info.h" |
72 #include "content/common/child_process_messages.h" | 72 #include "content/common/child_process_messages.h" |
73 #include "content/common/content_switches.h" | |
74 #include "content/common/gpu/gpu_messages.h" | 73 #include "content/common/gpu/gpu_messages.h" |
75 #include "content/common/notification_service.h" | 74 #include "content/common/notification_service.h" |
76 #include "content/common/process_watcher.h" | 75 #include "content/common/process_watcher.h" |
77 #include "content/common/resource_messages.h" | 76 #include "content/common/resource_messages.h" |
78 #include "content/common/result_codes.h" | 77 #include "content/common/result_codes.h" |
79 #include "content/common/view_messages.h" | 78 #include "content/common/view_messages.h" |
| 79 #include "content/public/common/content_switches.h" |
80 #include "content/renderer/render_process_impl.h" | 80 #include "content/renderer/render_process_impl.h" |
81 #include "content/renderer/render_thread_impl.h" | 81 #include "content/renderer/render_thread_impl.h" |
82 #include "ipc/ipc_logging.h" | 82 #include "ipc/ipc_logging.h" |
83 #include "ipc/ipc_platform_file.h" | 83 #include "ipc/ipc_platform_file.h" |
84 #include "ipc/ipc_switches.h" | 84 #include "ipc/ipc_switches.h" |
85 #include "media/base/media_switches.h" | 85 #include "media/base/media_switches.h" |
86 #include "net/url_request/url_request_context_getter.h" | 86 #include "net/url_request/url_request_context_getter.h" |
87 #include "ui/base/ui_base_switches.h" | 87 #include "ui/base/ui_base_switches.h" |
88 #include "ui/gfx/gl/gl_switches.h" | 88 #include "ui/gfx/gl/gl_switches.h" |
89 #include "webkit/fileapi/file_system_path_manager.h" | 89 #include "webkit/fileapi/file_system_path_manager.h" |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 980 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
981 // Only honor the request if appropriate persmissions are granted. | 981 // Only honor the request if appropriate persmissions are granted. |
982 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 982 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
983 content::GetContentClient()->browser()->OpenItem(path); | 983 content::GetContentClient()->browser()->OpenItem(path); |
984 } | 984 } |
985 | 985 |
986 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 986 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
987 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 987 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
988 MHTMLGenerated(job_id, data_size); | 988 MHTMLGenerated(job_id, data_size); |
989 } | 989 } |
OLD | NEW |