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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 | 722 |
723 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) | 723 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) |
724 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 724 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
725 | 725 |
726 webkit::SetSharedMemoryAllocationFunction(AllocateSharedMemoryFunction); | 726 webkit::SetSharedMemoryAllocationFunction(AllocateSharedMemoryFunction); |
727 } | 727 } |
728 | 728 |
729 void RenderThreadImpl::RegisterSchemes() { | 729 void RenderThreadImpl::RegisterSchemes() { |
730 // swappedout: pages should not be accessible, and should also | 730 // swappedout: pages should not be accessible, and should also |
731 // be treated as empty documents that can commit synchronously. | 731 // be treated as empty documents that can commit synchronously. |
732 WebString swappedout_scheme(ASCIIToUTF16(kSwappedOutScheme)); | 732 WebString swappedout_scheme(base::ASCIIToUTF16(kSwappedOutScheme)); |
733 WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(swappedout_scheme); | 733 WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(swappedout_scheme); |
734 WebSecurityPolicy::registerURLSchemeAsEmptyDocument(swappedout_scheme); | 734 WebSecurityPolicy::registerURLSchemeAsEmptyDocument(swappedout_scheme); |
735 } | 735 } |
736 | 736 |
737 void RenderThreadImpl::RecordAction(const UserMetricsAction& action) { | 737 void RenderThreadImpl::RecordAction(const UserMetricsAction& action) { |
738 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); | 738 Send(new ViewHostMsg_UserMetricsRecordAction(action.str_)); |
739 } | 739 } |
740 | 740 |
741 void RenderThreadImpl::RecordComputedAction(const std::string& action) { | 741 void RenderThreadImpl::RecordComputedAction(const std::string& action) { |
742 Send(new ViewHostMsg_UserMetricsRecordAction(action)); | 742 Send(new ViewHostMsg_UserMetricsRecordAction(action)); |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 if (!gamepad_shared_memory_reader_) | 1359 if (!gamepad_shared_memory_reader_) |
1360 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); | 1360 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); |
1361 gamepad_shared_memory_reader_->SampleGamepads(*data); | 1361 gamepad_shared_memory_reader_->SampleGamepads(*data); |
1362 } | 1362 } |
1363 | 1363 |
1364 base::ProcessId RenderThreadImpl::renderer_process_id() const { | 1364 base::ProcessId RenderThreadImpl::renderer_process_id() const { |
1365 return renderer_process_id_; | 1365 return renderer_process_id_; |
1366 } | 1366 } |
1367 | 1367 |
1368 } // namespace content | 1368 } // namespace content |
OLD | NEW |