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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 1573843002: Make `chrome` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_target
Patch Set: browsertest fix Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 base::ThreadChecker thread_checker_; 142 base::ThreadChecker thread_checker_;
143 143
144 // Weak pointer to the MetricsStateManager. 144 // Weak pointer to the MetricsStateManager.
145 metrics::MetricsStateManager* metrics_state_manager_; 145 metrics::MetricsStateManager* metrics_state_manager_;
146 146
147 // The MetricsService that |this| is a client of. 147 // The MetricsService that |this| is a client of.
148 scoped_ptr<metrics::MetricsService> metrics_service_; 148 scoped_ptr<metrics::MetricsService> metrics_service_;
149 149
150 content::NotificationRegistrar registrar_; 150 content::NotificationRegistrar registrar_;
151 151
152 #if defined(OS_CHROMEOS)
152 // On ChromeOS, holds a weak pointer to the ChromeOSMetricsProvider instance 153 // On ChromeOS, holds a weak pointer to the ChromeOSMetricsProvider instance
153 // that has been registered with MetricsService. On other platforms, is NULL. 154 // that has been registered with MetricsService. On other platforms, is NULL.
154 ChromeOSMetricsProvider* chromeos_metrics_provider_; 155 ChromeOSMetricsProvider* chromeos_metrics_provider_;
156 #endif
155 157
156 // Saved callback received from CollectFinalMetricsForLog(). 158 // Saved callback received from CollectFinalMetricsForLog().
157 base::Closure collect_final_metrics_done_callback_; 159 base::Closure collect_final_metrics_done_callback_;
158 160
159 // Indicates that collect final metrics step is running. 161 // Indicates that collect final metrics step is running.
160 bool waiting_for_collect_final_metrics_step_; 162 bool waiting_for_collect_final_metrics_step_;
161 163
162 // Number of async histogram fetch requests in progress. 164 // Number of async histogram fetch requests in progress.
163 int num_async_histogram_fetches_in_progress_; 165 int num_async_histogram_fetches_in_progress_;
164 166
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Whether this client has already uploaded profiler data during this session. 206 // Whether this client has already uploaded profiler data during this session.
205 // Profiler data is uploaded at most once per session. 207 // Profiler data is uploaded at most once per session.
206 bool has_uploaded_profiler_data_; 208 bool has_uploaded_profiler_data_;
207 209
208 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 210 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
209 211
210 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 212 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
211 }; 213 };
212 214
213 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 215 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698