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

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

Issue 8674003: Move the ProcessWatcher methods out of content/common/process_watcher into base/process_util, alo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 #include <algorithm> 10 #include <algorithm>
11 #include <limits> 11 #include <limits>
12 #include <vector> 12 #include <vector>
13 13
14 #if defined(OS_POSIX) 14 #if defined(OS_POSIX)
15 #include <utility> // for pair<> 15 #include <utility> // for pair<>
16 #endif 16 #endif
17 17
18 #include "base/base_switches.h" 18 #include "base/base_switches.h"
19 #include "base/bind.h" 19 #include "base/bind.h"
20 #include "base/bind_helpers.h" 20 #include "base/bind_helpers.h"
21 #include "base/callback.h" 21 #include "base/callback.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/lazy_instance.h" 23 #include "base/lazy_instance.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/metrics/field_trial.h" 25 #include "base/metrics/field_trial.h"
26 #include "base/metrics/histogram.h" 26 #include "base/metrics/histogram.h"
27 #include "base/path_service.h" 27 #include "base/path_service.h"
28 #include "base/platform_file.h" 28 #include "base/platform_file.h"
29 #include "base/process_util.h"
29 #include "base/rand_util.h" 30 #include "base/rand_util.h"
30 #include "base/stl_util.h" 31 #include "base/stl_util.h"
31 #include "base/string_util.h" 32 #include "base/string_util.h"
32 #include "base/sys_info.h" 33 #include "base/sys_info.h"
33 #include "base/threading/thread.h" 34 #include "base/threading/thread.h"
34 #include "base/threading/thread_restrictions.h" 35 #include "base/threading/thread_restrictions.h"
35 #include "content/browser/appcache/appcache_dispatcher_host.h" 36 #include "content/browser/appcache/appcache_dispatcher_host.h"
36 #include "content/browser/browser_child_process_host.h" 37 #include "content/browser/browser_child_process_host.h"
37 #include "content/browser/browser_context.h" 38 #include "content/browser/browser_context.h"
38 #include "content/browser/browser_main.h" 39 #include "content/browser/browser_main.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "content/browser/resolve_proxy_msg_helper.h" 72 #include "content/browser/resolve_proxy_msg_helper.h"
72 #include "content/browser/speech/speech_input_dispatcher_host.h" 73 #include "content/browser/speech/speech_input_dispatcher_host.h"
73 #include "content/browser/trace_message_filter.h" 74 #include "content/browser/trace_message_filter.h"
74 #include "content/browser/user_metrics.h" 75 #include "content/browser/user_metrics.h"
75 #include "content/browser/webui/web_ui_factory.h" 76 #include "content/browser/webui/web_ui_factory.h"
76 #include "content/browser/worker_host/worker_message_filter.h" 77 #include "content/browser/worker_host/worker_message_filter.h"
77 #include "content/common/child_process_info.h" 78 #include "content/common/child_process_info.h"
78 #include "content/common/child_process_messages.h" 79 #include "content/common/child_process_messages.h"
79 #include "content/common/gpu/gpu_messages.h" 80 #include "content/common/gpu/gpu_messages.h"
80 #include "content/public/browser/notification_service.h" 81 #include "content/public/browser/notification_service.h"
81 #include "content/common/process_watcher.h"
82 #include "content/common/resource_messages.h" 82 #include "content/common/resource_messages.h"
83 #include "content/common/view_messages.h" 83 #include "content/common/view_messages.h"
84 #include "content/public/browser/content_browser_client.h" 84 #include "content/public/browser/content_browser_client.h"
85 #include "content/public/common/content_constants.h" 85 #include "content/public/common/content_constants.h"
86 #include "content/public/common/content_switches.h" 86 #include "content/public/common/content_switches.h"
87 #include "content/public/common/result_codes.h" 87 #include "content/public/common/result_codes.h"
88 #include "content/renderer/render_process_impl.h" 88 #include "content/renderer/render_process_impl.h"
89 #include "content/renderer/render_thread_impl.h" 89 #include "content/renderer/render_thread_impl.h"
90 #include "ipc/ipc_logging.h" 90 #include "ipc/ipc_logging.h"
91 #include "ipc/ipc_platform_file.h" 91 #include "ipc/ipc_platform_file.h"
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1305 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1306 // Only honor the request if appropriate persmissions are granted. 1306 // Only honor the request if appropriate persmissions are granted.
1307 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) 1307 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path))
1308 content::GetContentClient()->browser()->OpenItem(path); 1308 content::GetContentClient()->browser()->OpenItem(path);
1309 } 1309 }
1310 1310
1311 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1311 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1312 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1312 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1313 MHTMLGenerated(job_id, data_size); 1313 MHTMLGenerated(job_id, data_size);
1314 } 1314 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698