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

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

Issue 2671603002: Add network information to UKM (Closed)
Patch Set: fix comments and includes Created 3 years, 10 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 | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.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 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 <deque> 10 #include <deque>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // can be saved. 95 // can be saved.
96 static const char kBrowserMetricsName[]; 96 static const char kBrowserMetricsName[];
97 97
98 private: 98 private:
99 explicit ChromeMetricsServiceClient( 99 explicit ChromeMetricsServiceClient(
100 metrics::MetricsStateManager* state_manager); 100 metrics::MetricsStateManager* state_manager);
101 101
102 // Completes the two-phase initialization of ChromeMetricsServiceClient. 102 // Completes the two-phase initialization of ChromeMetricsServiceClient.
103 void Initialize(); 103 void Initialize();
104 104
105 // Registers providers to the MetricsService. These provide data from
106 // alternate sources.
107 void RegisterMetricsServiceProviders();
108
109 // Registers providers to the UkmService. These provide data from alternate
110 // sources.
111 void RegisterUKMProviders();
112
105 // Callback to chain init tasks: Pops and executes the next init task from 113 // Callback to chain init tasks: Pops and executes the next init task from
106 // |initialize_task_queue_|, then passes itself as callback for each init task 114 // |initialize_task_queue_|, then passes itself as callback for each init task
107 // to call upon completion. 115 // to call upon completion.
108 void OnInitNextTask(); 116 void OnInitNextTask();
109 117
110 // Returns true iff profiler data should be included in the next metrics log. 118 // Returns true iff profiler data should be included in the next metrics log.
111 // NOTE: This method is probabilistic and also updates internal state as a 119 // NOTE: This method is probabilistic and also updates internal state as a
112 // side-effect when called, so it should only be called once per log. 120 // side-effect when called, so it should only be called once per log.
113 bool ShouldIncludeProfilerDataInLog(); 121 bool ShouldIncludeProfilerDataInLog();
114 122
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Whether this client has already uploaded profiler data during this session. 238 // Whether this client has already uploaded profiler data during this session.
231 // Profiler data is uploaded at most once per session. 239 // Profiler data is uploaded at most once per session.
232 bool has_uploaded_profiler_data_; 240 bool has_uploaded_profiler_data_;
233 241
234 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 242 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
235 243
236 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 244 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
237 }; 245 };
238 246
239 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 247 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698