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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
9
8 #include <string> 10 #include <string>
9 11
10 #include "base/basictypes.h"
11 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
14 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "build/build_config.h"
15 #include "chrome/browser/metrics/metrics_memory_details.h" 18 #include "chrome/browser/metrics/metrics_memory_details.h"
16 #include "components/metrics/metrics_service_client.h" 19 #include "components/metrics/metrics_service_client.h"
17 #include "components/metrics/profiler/tracking_synchronizer_observer.h" 20 #include "components/metrics/profiler/tracking_synchronizer_observer.h"
18 #include "components/omnibox/browser/omnibox_event_global_tracker.h" 21 #include "components/omnibox/browser/omnibox_event_global_tracker.h"
19 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
21 24
22 class ChromeOSMetricsProvider; 25 class ChromeOSMetricsProvider;
23 class GoogleUpdateMetricsProviderWin; 26 class GoogleUpdateMetricsProviderWin;
24 class PluginMetricsProvider; 27 class PluginMetricsProvider;
(...skipping 26 matching lines...) Expand all
51 PrefService* local_state); 54 PrefService* local_state);
52 55
53 // Registers local state prefs used by this class. 56 // Registers local state prefs used by this class.
54 static void RegisterPrefs(PrefRegistrySimple* registry); 57 static void RegisterPrefs(PrefRegistrySimple* registry);
55 58
56 // metrics::MetricsServiceClient: 59 // metrics::MetricsServiceClient:
57 metrics::MetricsService* GetMetricsService() override; 60 metrics::MetricsService* GetMetricsService() override;
58 void SetMetricsClientId(const std::string& client_id) override; 61 void SetMetricsClientId(const std::string& client_id) override;
59 void OnRecordingDisabled() override; 62 void OnRecordingDisabled() override;
60 bool IsOffTheRecordSessionActive() override; 63 bool IsOffTheRecordSessionActive() override;
61 int32 GetProduct() override; 64 int32_t GetProduct() override;
62 std::string GetApplicationLocale() override; 65 std::string GetApplicationLocale() override;
63 bool GetBrand(std::string* brand_code) override; 66 bool GetBrand(std::string* brand_code) override;
64 metrics::SystemProfileProto::Channel GetChannel() override; 67 metrics::SystemProfileProto::Channel GetChannel() override;
65 std::string GetVersionString() override; 68 std::string GetVersionString() override;
66 void OnLogUploadComplete() override; 69 void OnLogUploadComplete() override;
67 void InitializeSystemProfileMetrics( 70 void InitializeSystemProfileMetrics(
68 const base::Closure& done_callback) override; 71 const base::Closure& done_callback) override;
69 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
70 scoped_ptr<metrics::MetricsLogUploader> CreateUploader( 73 scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
71 const base::Callback<void(int)>& on_upload_complete) override; 74 const base::Callback<void(int)>& on_upload_complete) override;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Whether this client has already uploaded profiler data during this session. 204 // Whether this client has already uploaded profiler data during this session.
202 // Profiler data is uploaded at most once per session. 205 // Profiler data is uploaded at most once per session.
203 bool has_uploaded_profiler_data_; 206 bool has_uploaded_profiler_data_;
204 207
205 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 208 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
206 209
207 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 210 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
208 }; 211 };
209 212
210 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 213 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698