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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 } | 1103 } |
1104 | 1104 |
1105 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { | 1105 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { |
1106 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); | 1106 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); |
1107 } | 1107 } |
1108 | 1108 |
1109 void RenderThreadImpl::RecordComputedAction(const std::string& action) { | 1109 void RenderThreadImpl::RecordComputedAction(const std::string& action) { |
1110 Send(new ViewHostMsg_UserMetricsRecordAction(action)); | 1110 Send(new ViewHostMsg_UserMetricsRecordAction(action)); |
1111 } | 1111 } |
1112 | 1112 |
| 1113 void RenderThreadImpl::RecordRappor( |
| 1114 const std::string& metric, |
| 1115 const std::string& sample) { |
| 1116 Send(new ViewHostMsg_UserMetricsRecordRappor(metric, sample)); |
| 1117 } |
| 1118 |
1113 scoped_ptr<base::SharedMemory> | 1119 scoped_ptr<base::SharedMemory> |
1114 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { | 1120 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { |
1115 return ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender()); | 1121 return ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender()); |
1116 } | 1122 } |
1117 | 1123 |
1118 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { | 1124 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { |
1119 return shared_bitmap_manager(); | 1125 return shared_bitmap_manager(); |
1120 } | 1126 } |
1121 | 1127 |
1122 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { | 1128 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 } | 1812 } |
1807 | 1813 |
1808 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1814 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
1809 size_t erased = | 1815 size_t erased = |
1810 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1816 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
1811 routing_id_); | 1817 routing_id_); |
1812 DCHECK_EQ(1u, erased); | 1818 DCHECK_EQ(1u, erased); |
1813 } | 1819 } |
1814 | 1820 |
1815 } // namespace content | 1821 } // namespace content |
OLD | NEW |