| 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 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { | 1144 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { |
| 1145 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); | 1145 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 void RenderThreadImpl::RecordComputedAction(const std::string& action) { | 1148 void RenderThreadImpl::RecordComputedAction(const std::string& action) { |
| 1149 Send(new ViewHostMsg_UserMetricsRecordAction(action)); | 1149 Send(new ViewHostMsg_UserMetricsRecordAction(action)); |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 void RenderThreadImpl::RecordRappor( |
| 1153 const std::string& metric, |
| 1154 const std::string& sample) { |
| 1155 Send(new ViewHostMsg_UserMetricsRecordRappor(metric, sample)); |
| 1156 } |
| 1157 |
| 1152 scoped_ptr<base::SharedMemory> | 1158 scoped_ptr<base::SharedMemory> |
| 1153 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { | 1159 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { |
| 1154 return ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender()); | 1160 return ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender()); |
| 1155 } | 1161 } |
| 1156 | 1162 |
| 1157 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { | 1163 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { |
| 1158 return shared_bitmap_manager(); | 1164 return shared_bitmap_manager(); |
| 1159 } | 1165 } |
| 1160 | 1166 |
| 1161 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { | 1167 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 } | 1858 } |
| 1853 | 1859 |
| 1854 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1860 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1855 size_t erased = | 1861 size_t erased = |
| 1856 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1862 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1857 routing_id_); | 1863 routing_id_); |
| 1858 DCHECK_EQ(1u, erased); | 1864 DCHECK_EQ(1u, erased); |
| 1859 } | 1865 } |
| 1860 | 1866 |
| 1861 } // namespace content | 1867 } // namespace content |
| OLD | NEW |