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

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

Issue 2700443002: Fix MetricsServiceClients to use SyncDisableObservers state. (Closed)
Patch Set: 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 80 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
81 const std::string& server_url, 81 const std::string& server_url,
82 const std::string& mime_type, 82 const std::string& mime_type,
83 const base::Callback<void(int)>& on_upload_complete) override; 83 const base::Callback<void(int)>& on_upload_complete) override;
84 base::TimeDelta GetStandardUploadInterval() override; 84 base::TimeDelta GetStandardUploadInterval() override;
85 base::string16 GetRegistryBackupKey() override; 85 base::string16 GetRegistryBackupKey() override;
86 void OnPluginLoadingError(const base::FilePath& plugin_path) override; 86 void OnPluginLoadingError(const base::FilePath& plugin_path) override;
87 bool IsReportingPolicyManaged() override; 87 bool IsReportingPolicyManaged() override;
88 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override; 88 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
89 bool IsUMACellularUploadLogicEnabled() override; 89 bool IsUMACellularUploadLogicEnabled() override;
90 bool IsHistorySyncEnabledOnAllProfiles() override;
90 91
91 // ukm::HistoryDeleteObserver: 92 // ukm::HistoryDeleteObserver:
92 void OnHistoryDeleted() override; 93 void OnHistoryDeleted() override;
93 94
94 // ukm::SyncDisableObserver: 95 // ukm::SyncDisableObserver:
95 void OnSyncPrefsChanged(bool must_purge) override; 96 void OnSyncPrefsChanged(bool must_purge) override;
96 97
97 // Persistent browser metrics need to be persisted somewhere. This constant 98 // Persistent browser metrics need to be persisted somewhere. This constant
98 // provides a known string to be used for both the allocator's internal name 99 // provides a known string to be used for both the allocator's internal name
99 // and for a file on disk (relative to chrome::DIR_USER_DATA) to which they 100 // and for a file on disk (relative to chrome::DIR_USER_DATA) to which they
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Whether this client has already uploaded profiler data during this session. 244 // Whether this client has already uploaded profiler data during this session.
244 // Profiler data is uploaded at most once per session. 245 // Profiler data is uploaded at most once per session.
245 bool has_uploaded_profiler_data_; 246 bool has_uploaded_profiler_data_;
246 247
247 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 248 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
248 249
249 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 250 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
250 }; 251 };
251 252
252 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 253 #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