OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "base/platform_file.h" | 32 #include "base/platform_file.h" |
33 #include "base/process_util.h" | 33 #include "base/process_util.h" |
34 #include "base/rand_util.h" | 34 #include "base/rand_util.h" |
35 #include "base/stl_util.h" | 35 #include "base/stl_util.h" |
36 #include "base/string_util.h" | 36 #include "base/string_util.h" |
37 #include "base/sys_info.h" | 37 #include "base/sys_info.h" |
38 #include "base/threading/thread.h" | 38 #include "base/threading/thread.h" |
39 #include "base/threading/thread_restrictions.h" | 39 #include "base/threading/thread_restrictions.h" |
40 #include "base/tracked_objects.h" | 40 #include "base/tracked_objects.h" |
41 #include "content/browser/appcache/appcache_dispatcher_host.h" | 41 #include "content/browser/appcache/appcache_dispatcher_host.h" |
42 #include "content/browser/browser_child_process_host.h" | |
43 #include "content/browser/browser_main.h" | 42 #include "content/browser/browser_main.h" |
44 #include "content/browser/child_process_security_policy.h" | 43 #include "content/browser/child_process_security_policy.h" |
45 #include "content/browser/device_orientation/message_filter.h" | 44 #include "content/browser/device_orientation/message_filter.h" |
46 #include "content/browser/download/mhtml_generation_manager.h" | 45 #include "content/browser/download/mhtml_generation_manager.h" |
47 #include "content/browser/file_system/file_system_dispatcher_host.h" | 46 #include "content/browser/file_system/file_system_dispatcher_host.h" |
48 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 47 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
49 #include "content/browser/gpu/gpu_data_manager.h" | 48 #include "content/browser/gpu/gpu_data_manager.h" |
50 #include "content/browser/gpu/gpu_process_host.h" | 49 #include "content/browser/gpu/gpu_process_host.h" |
51 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" | 50 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
52 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 51 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1293 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1295 // Only honor the request if appropriate persmissions are granted. | 1294 // Only honor the request if appropriate persmissions are granted. |
1296 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1295 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
1297 content::GetContentClient()->browser()->OpenItem(path); | 1296 content::GetContentClient()->browser()->OpenItem(path); |
1298 } | 1297 } |
1299 | 1298 |
1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1299 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1300 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1302 MHTMLGenerated(job_id, data_size); | 1301 MHTMLGenerated(job_id, data_size); |
1303 } | 1302 } |
OLD | NEW |