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

Side by Side Diff: content/browser/profiler_controller_impl.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
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/browser/profiler_controller_impl.h" 5 #include "content/browser/profiler_controller_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/process/process_handle.h" 8 #include "base/process/process_handle.h"
9 #include "base/tracked_objects.h" 9 #include "base/tracked_objects.h"
10 #include "content/common/child_process_messages.h" 10 #include "content/common/child_process_messages.h"
11 #include "content/public/browser/browser_child_process_host_iterator.h" 11 #include "content/public/browser/browser_child_process_host_iterator.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/child_process_data.h" 13 #include "content/public/browser/child_process_data.h"
14 #include "content/public/browser/profiler_subscriber.h" 14 #include "content/public/browser/profiler_subscriber.h"
15 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 ProfilerController* ProfilerController::GetInstance() { 19 ProfilerController* ProfilerController::GetInstance() {
20 return ProfilerControllerImpl::GetInstance(); 20 return ProfilerControllerImpl::GetInstance();
21 } 21 }
22 22
23 ProfilerControllerImpl* ProfilerControllerImpl::GetInstance() { 23 ProfilerControllerImpl* ProfilerControllerImpl::GetInstance() {
24 return Singleton<ProfilerControllerImpl>::get(); 24 return base::Singleton<ProfilerControllerImpl>::get();
25 } 25 }
26 26
27 ProfilerControllerImpl::ProfilerControllerImpl() : subscriber_(NULL) { 27 ProfilerControllerImpl::ProfilerControllerImpl() : subscriber_(NULL) {
28 } 28 }
29 29
30 ProfilerControllerImpl::~ProfilerControllerImpl() { 30 ProfilerControllerImpl::~ProfilerControllerImpl() {
31 } 31 }
32 32
33 void ProfilerControllerImpl::OnPendingProcesses(int sequence_number, 33 void ProfilerControllerImpl::OnPendingProcesses(int sequence_number,
34 int pending_processes, 34 int pending_processes,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 BrowserThread::PostTask( 161 BrowserThread::PostTask(
162 BrowserThread::IO, FROM_HERE, 162 BrowserThread::IO, FROM_HERE,
163 base::Bind(&ProfilerControllerImpl:: 163 base::Bind(&ProfilerControllerImpl::
164 NotifyChildProcessesOfProfilingPhaseCompletion, 164 NotifyChildProcessesOfProfilingPhaseCompletion,
165 profiling_phase)); 165 profiling_phase));
166 } 166 }
167 167
168 } // namespace content 168 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/profiler_controller_impl.h ('k') | content/browser/renderer_host/media/media_capture_devices_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698