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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 #include "content/public/common/result_codes.h" | 97 #include "content/public/common/result_codes.h" |
98 #include "content/renderer/render_process_impl.h" | 98 #include "content/renderer/render_process_impl.h" |
99 #include "content/renderer/render_thread_impl.h" | 99 #include "content/renderer/render_thread_impl.h" |
100 #include "ipc/ipc_logging.h" | 100 #include "ipc/ipc_logging.h" |
101 #include "ipc/ipc_platform_file.h" | 101 #include "ipc/ipc_platform_file.h" |
102 #include "ipc/ipc_switches.h" | 102 #include "ipc/ipc_switches.h" |
103 #include "media/base/media_switches.h" | 103 #include "media/base/media_switches.h" |
104 #include "net/url_request/url_request_context_getter.h" | 104 #include "net/url_request/url_request_context_getter.h" |
105 #include "ui/base/ui_base_switches.h" | 105 #include "ui/base/ui_base_switches.h" |
106 #include "ui/gfx/gl/gl_switches.h" | 106 #include "ui/gfx/gl/gl_switches.h" |
107 #include "webkit/fileapi/file_system_path_manager.h" | |
108 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 107 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
109 #include "webkit/glue/resource_type.h" | 108 #include "webkit/glue/resource_type.h" |
110 #include "webkit/plugins/plugin_switches.h" | 109 #include "webkit/plugins/plugin_switches.h" |
111 | 110 |
112 #if defined(OS_WIN) | 111 #if defined(OS_WIN) |
113 #include "base/synchronization/waitable_event.h" | 112 #include "base/synchronization/waitable_event.h" |
114 #include "content/common/font_cache_dispatcher_win.h" | 113 #include "content/common/font_cache_dispatcher_win.h" |
115 #endif | 114 #endif |
116 | 115 |
117 #include "third_party/skia/include/core/SkBitmap.h" | 116 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1303 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1305 // Only honor the request if appropriate persmissions are granted. | 1304 // Only honor the request if appropriate persmissions are granted. |
1306 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1305 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
1307 content::GetContentClient()->browser()->OpenItem(path); | 1306 content::GetContentClient()->browser()->OpenItem(path); |
1308 } | 1307 } |
1309 | 1308 |
1310 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1309 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1311 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1310 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1312 MHTMLGenerated(job_id, data_size); | 1311 MHTMLGenerated(job_id, data_size); |
1313 } | 1312 } |
OLD | NEW |