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

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

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 #ifndef CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 content::ProcessType process_type); 42 content::ProcessType process_type);
43 43
44 // ProfilerController implementation: 44 // ProfilerController implementation:
45 void Register(ProfilerSubscriber* subscriber) override; 45 void Register(ProfilerSubscriber* subscriber) override;
46 void Unregister(const ProfilerSubscriber* subscriber) override; 46 void Unregister(const ProfilerSubscriber* subscriber) override;
47 void GetProfilerData(int sequence_number, 47 void GetProfilerData(int sequence_number,
48 int current_profiling_phase) override; 48 int current_profiling_phase) override;
49 void OnProfilingPhaseCompleted(int profiling_phase) override; 49 void OnProfilingPhaseCompleted(int profiling_phase) override;
50 50
51 private: 51 private:
52 friend struct DefaultSingletonTraits<ProfilerControllerImpl>; 52 friend struct base::DefaultSingletonTraits<ProfilerControllerImpl>;
53 53
54 // Contact child processes and get their profiler data. 54 // Contact child processes and get their profiler data.
55 void GetProfilerDataFromChildProcesses(int sequence_number, 55 void GetProfilerDataFromChildProcesses(int sequence_number,
56 int current_profiling_phase); 56 int current_profiling_phase);
57 57
58 // Contact child processes and notify them of a profiling phase completion. 58 // Contact child processes and notify them of a profiling phase completion.
59 static void NotifyChildProcessesOfProfilingPhaseCompletion( 59 static void NotifyChildProcessesOfProfilingPhaseCompletion(
60 int profiling_phase); 60 int profiling_phase);
61 61
62 ProfilerSubscriber* subscriber_; 62 ProfilerSubscriber* subscriber_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ProfilerControllerImpl); 64 DISALLOW_COPY_AND_ASSIGN(ProfilerControllerImpl);
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_ 69 #endif // CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/power_profiler/power_profiler_service.cc ('k') | content/browser/profiler_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698