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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 20066: Move resource_message_filter and resource_request_details to the renderer_hos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 13 matching lines...) Expand all
24 #include "base/string_util.h" 24 #include "base/string_util.h"
25 #include "base/thread.h" 25 #include "base/thread.h"
26 #include "chrome/app/result_codes.h" 26 #include "chrome/app/result_codes.h"
27 #include "chrome/browser/browser_process.h" 27 #include "chrome/browser/browser_process.h"
28 #include "chrome/browser/cache_manager_host.h" 28 #include "chrome/browser/cache_manager_host.h"
29 #include "chrome/browser/extensions/user_script_master.h" 29 #include "chrome/browser/extensions/user_script_master.h"
30 #include "chrome/browser/plugin_service.h" 30 #include "chrome/browser/plugin_service.h"
31 #include "chrome/browser/profile.h" 31 #include "chrome/browser/profile.h"
32 #include "chrome/browser/renderer_host/render_widget_helper.h" 32 #include "chrome/browser/renderer_host/render_widget_helper.h"
33 #include "chrome/browser/renderer_host/renderer_security_policy.h" 33 #include "chrome/browser/renderer_host/renderer_security_policy.h"
34 #include "chrome/browser/resource_message_filter.h" 34 #include "chrome/browser/renderer_host/resource_message_filter.h"
35 #include "chrome/browser/visitedlink_master.h" 35 #include "chrome/browser/visitedlink_master.h"
36 #include "chrome/common/chrome_paths.h" 36 #include "chrome/common/chrome_paths.h"
37 #include "chrome/common/chrome_switches.h" 37 #include "chrome/common/chrome_switches.h"
38 #include "chrome/common/debug_flags.h" 38 #include "chrome/common/debug_flags.h"
39 #include "chrome/common/l10n_util.h" 39 #include "chrome/common/l10n_util.h"
40 #include "chrome/common/logging_chrome.h" 40 #include "chrome/common/logging_chrome.h"
41 #include "chrome/common/notification_service.h" 41 #include "chrome/common/notification_service.h"
42 #include "chrome/common/pref_names.h" 42 #include "chrome/common/pref_names.h"
43 #include "chrome/common/pref_service.h" 43 #include "chrome/common/pref_service.h"
44 #include "chrome/common/process_watcher.h" 44 #include "chrome/common/process_watcher.h"
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 // child processes determine the pid of the parent. 781 // child processes determine the pid of the parent.
782 // Build the channel ID. This is composed of a unique identifier for the 782 // Build the channel ID. This is composed of a unique identifier for the
783 // parent browser process, an identifier for the renderer/plugin instance, 783 // parent browser process, an identifier for the renderer/plugin instance,
784 // and a random component. We use a random component so that a hacked child 784 // and a random component. We use a random component so that a hacked child
785 // process can't cause denial of service by causing future named pipe creation 785 // process can't cause denial of service by causing future named pipe creation
786 // to fail. 786 // to fail.
787 return StringPrintf(L"%d.%x.%d", 787 return StringPrintf(L"%d.%x.%d",
788 base::GetCurrentProcId(), instance, 788 base::GetCurrentProcId(), instance,
789 base::RandInt(0, std::numeric_limits<int>::max())); 789 base::RandInt(0, std::numeric_limits<int>::max()));
790 } 790 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698