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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698