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 <utility> | 10 #include <utility> |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { | 1360 void RenderThreadImpl::RecordAction(const base::UserMetricsAction& action) { |
1361 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); | 1361 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); |
1362 } | 1362 } |
1363 | 1363 |
1364 void RenderThreadImpl::RecordComputedAction(const std::string& action) { | 1364 void RenderThreadImpl::RecordComputedAction(const std::string& action) { |
1365 Send(new ViewHostMsg_UserMetricsRecordAction(action)); | 1365 Send(new ViewHostMsg_UserMetricsRecordAction(action)); |
1366 } | 1366 } |
1367 | 1367 |
1368 std::unique_ptr<base::SharedMemory> | 1368 std::unique_ptr<base::SharedMemory> |
1369 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { | 1369 RenderThreadImpl::HostAllocateSharedMemoryBuffer(size_t size) { |
1370 return ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender(), | 1370 return ChildThreadImpl::AllocateSharedMemory(size); |
1371 nullptr); | |
1372 } | 1371 } |
1373 | 1372 |
1374 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { | 1373 cc::SharedBitmapManager* RenderThreadImpl::GetSharedBitmapManager() { |
1375 return shared_bitmap_manager(); | 1374 return shared_bitmap_manager(); |
1376 } | 1375 } |
1377 | 1376 |
1378 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { | 1377 void RenderThreadImpl::RegisterExtension(v8::Extension* extension) { |
1379 WebScriptController::registerExtension(extension); | 1378 WebScriptController::registerExtension(extension); |
1380 } | 1379 } |
1381 | 1380 |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 } | 2503 } |
2505 } | 2504 } |
2506 | 2505 |
2507 void RenderThreadImpl::OnRendererInterfaceRequest( | 2506 void RenderThreadImpl::OnRendererInterfaceRequest( |
2508 mojom::RendererAssociatedRequest request) { | 2507 mojom::RendererAssociatedRequest request) { |
2509 DCHECK(!renderer_binding_.is_bound()); | 2508 DCHECK(!renderer_binding_.is_bound()); |
2510 renderer_binding_.Bind(std::move(request)); | 2509 renderer_binding_.Bind(std::move(request)); |
2511 } | 2510 } |
2512 | 2511 |
2513 } // namespace content | 2512 } // namespace content |
OLD | NEW |