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

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

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 8 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include <algorithm> 10 #include <algorithm>
(...skipping 16 matching lines...) Expand all
27 #include "base/location.h" 27 #include "base/location.h"
28 #include "base/logging.h" 28 #include "base/logging.h"
29 #include "base/macros.h" 29 #include "base/macros.h"
30 #include "base/memory/ptr_util.h" 30 #include "base/memory/ptr_util.h"
31 #include "base/memory/ref_counted.h" 31 #include "base/memory/ref_counted.h"
32 #include "base/memory/shared_memory.h" 32 #include "base/memory/shared_memory.h"
33 #include "base/memory/shared_memory_handle.h" 33 #include "base/memory/shared_memory_handle.h"
34 #include "base/metrics/histogram_macros.h" 34 #include "base/metrics/histogram_macros.h"
35 #include "base/metrics/persistent_histogram_allocator.h" 35 #include "base/metrics/persistent_histogram_allocator.h"
36 #include "base/metrics/persistent_memory_allocator.h" 36 #include "base/metrics/persistent_memory_allocator.h"
37 #include "base/metrics/user_metrics.h"
37 #include "base/process/process_handle.h" 38 #include "base/process/process_handle.h"
38 #include "base/rand_util.h" 39 #include "base/rand_util.h"
39 #include "base/single_thread_task_runner.h" 40 #include "base/single_thread_task_runner.h"
40 #include "base/stl_util.h" 41 #include "base/stl_util.h"
41 #include "base/strings/string_number_conversions.h" 42 #include "base/strings/string_number_conversions.h"
42 #include "base/strings/stringprintf.h" 43 #include "base/strings/stringprintf.h"
43 #include "base/supports_user_data.h" 44 #include "base/supports_user_data.h"
44 #include "base/synchronization/lock.h" 45 #include "base/synchronization/lock.h"
45 #include "base/sys_info.h" 46 #include "base/sys_info.h"
46 #include "base/threading/thread.h" 47 #include "base/threading/thread.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #include "content/public/browser/browser_context.h" 146 #include "content/public/browser/browser_context.h"
146 #include "content/public/browser/browser_thread.h" 147 #include "content/public/browser/browser_thread.h"
147 #include "content/public/browser/content_browser_client.h" 148 #include "content/public/browser/content_browser_client.h"
148 #include "content/public/browser/notification_service.h" 149 #include "content/public/browser/notification_service.h"
149 #include "content/public/browser/notification_types.h" 150 #include "content/public/browser/notification_types.h"
150 #include "content/public/browser/render_process_host_factory.h" 151 #include "content/public/browser/render_process_host_factory.h"
151 #include "content/public/browser/render_process_host_observer.h" 152 #include "content/public/browser/render_process_host_observer.h"
152 #include "content/public/browser/render_widget_host.h" 153 #include "content/public/browser/render_widget_host.h"
153 #include "content/public/browser/render_widget_host_iterator.h" 154 #include "content/public/browser/render_widget_host_iterator.h"
154 #include "content/public/browser/resource_context.h" 155 #include "content/public/browser/resource_context.h"
155 #include "content/public/browser/user_metrics.h"
156 #include "content/public/browser/worker_service.h" 156 #include "content/public/browser/worker_service.h"
157 #include "content/public/common/child_process_host.h" 157 #include "content/public/common/child_process_host.h"
158 #include "content/public/common/connection_filter.h" 158 #include "content/public/common/connection_filter.h"
159 #include "content/public/common/content_constants.h" 159 #include "content/public/common/content_constants.h"
160 #include "content/public/common/content_features.h" 160 #include "content/public/common/content_features.h"
161 #include "content/public/common/content_switches.h" 161 #include "content/public/common/content_switches.h"
162 #include "content/public/common/mojo_channel_switches.h" 162 #include "content/public/common/mojo_channel_switches.h"
163 #include "content/public/common/process_type.h" 163 #include "content/public/common/process_type.h"
164 #include "content/public/common/resource_type.h" 164 #include "content/public/common/resource_type.h"
165 #include "content/public/common/result_codes.h" 165 #include "content/public/common/result_codes.h"
(...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after
2961 ProcessDied(true, &details); 2961 ProcessDied(true, &details);
2962 } 2962 }
2963 2963
2964 scoped_refptr<AudioRendererHost> RenderProcessHostImpl::audio_renderer_host() 2964 scoped_refptr<AudioRendererHost> RenderProcessHostImpl::audio_renderer_host()
2965 const { 2965 const {
2966 return audio_renderer_host_; 2966 return audio_renderer_host_;
2967 } 2967 }
2968 2968
2969 void RenderProcessHostImpl::OnUserMetricsRecordAction( 2969 void RenderProcessHostImpl::OnUserMetricsRecordAction(
2970 const std::string& action) { 2970 const std::string& action) {
2971 RecordComputedAction(action); 2971 base::RecordComputedAction(action);
2972 } 2972 }
2973 2973
2974 void RenderProcessHostImpl::OnCloseACK(int old_route_id) { 2974 void RenderProcessHostImpl::OnCloseACK(int old_route_id) {
2975 SessionStorageHolder* holder = 2975 SessionStorageHolder* holder =
2976 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey)); 2976 static_cast<SessionStorageHolder*>(GetUserData(kSessionStorageHolderKey));
2977 if (!holder) 2977 if (!holder)
2978 return; 2978 return;
2979 holder->Release(old_route_id); 2979 holder->Release(old_route_id);
2980 } 2980 }
2981 2981
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3072 3072
3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3074 // Capture the error message in a crash key value. 3074 // Capture the error message in a crash key value.
3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3076 bad_message::ReceivedBadMessage(render_process_id, 3076 bad_message::ReceivedBadMessage(render_process_id,
3077 bad_message::RPH_MOJO_PROCESS_ERROR); 3077 bad_message::RPH_MOJO_PROCESS_ERROR);
3078 } 3078 }
3079 3079
3080 } // namespace content 3080 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698