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

Side by Side Diff: content/browser/histogram_controller.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
« no previous file with comments | « content/browser/gpu/shader_disk_cache.cc ('k') | content/browser/histogram_controller.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 #ifndef CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_
6 #define CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ 6 #define CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // increase. This is called on the UI thread. 48 // increase. This is called on the UI thread.
49 void OnPendingProcesses(int sequence_number, int pending_processes, bool end); 49 void OnPendingProcesses(int sequence_number, int pending_processes, bool end);
50 50
51 // Send the |histogram| back to the |subscriber_|. 51 // Send the |histogram| back to the |subscriber_|.
52 // This can be called from any thread. 52 // This can be called from any thread.
53 void OnHistogramDataCollected( 53 void OnHistogramDataCollected(
54 int sequence_number, 54 int sequence_number,
55 const std::vector<std::string>& pickled_histograms); 55 const std::vector<std::string>& pickled_histograms);
56 56
57 private: 57 private:
58 friend struct DefaultSingletonTraits<HistogramController>; 58 friend struct base::DefaultSingletonTraits<HistogramController>;
59 59
60 // Contact PLUGIN and GPU child processes and get their histogram data. 60 // Contact PLUGIN and GPU child processes and get their histogram data.
61 // TODO(rtenneti): Enable getting histogram data for other processes like 61 // TODO(rtenneti): Enable getting histogram data for other processes like
62 // PPAPI and NACL. 62 // PPAPI and NACL.
63 void GetHistogramDataFromChildProcesses(int sequence_number); 63 void GetHistogramDataFromChildProcesses(int sequence_number);
64 64
65 HistogramSubscriber* subscriber_; 65 HistogramSubscriber* subscriber_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(HistogramController); 67 DISALLOW_COPY_AND_ASSIGN(HistogramController);
68 }; 68 };
69 69
70 } // namespace content 70 } // namespace content
71 71
72 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ 72 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/shader_disk_cache.cc ('k') | content/browser/histogram_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698