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

Side by Side Diff: ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define IOS_CHROME_BROWSER_METRICS_IOS_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"
15 #include "components/metrics/metrics_service_client.h" 17 #include "components/metrics/metrics_service_client.h"
16 #include "components/metrics/profiler/tracking_synchronizer_observer.h" 18 #include "components/metrics/profiler/tracking_synchronizer_observer.h"
17 #include "components/omnibox/browser/omnibox_event_global_tracker.h" 19 #include "components/omnibox/browser/omnibox_event_global_tracker.h"
18 #include "ios/web/public/web_state/global_web_state_observer.h" 20 #include "ios/web/public/web_state/global_web_state_observer.h"
19 21
20 class IOSChromeStabilityMetricsProvider; 22 class IOSChromeStabilityMetricsProvider;
21 class PrefRegistrySimple; 23 class PrefRegistrySimple;
(...skipping 25 matching lines...) Expand all
47 PrefService* local_state); 49 PrefService* local_state);
48 50
49 // Registers local state prefs used by this class. 51 // Registers local state prefs used by this class.
50 static void RegisterPrefs(PrefRegistrySimple* registry); 52 static void RegisterPrefs(PrefRegistrySimple* registry);
51 53
52 // metrics::MetricsServiceClient: 54 // metrics::MetricsServiceClient:
53 metrics::MetricsService* GetMetricsService() override; 55 metrics::MetricsService* GetMetricsService() override;
54 void SetMetricsClientId(const std::string& client_id) override; 56 void SetMetricsClientId(const std::string& client_id) override;
55 void OnRecordingDisabled() override; 57 void OnRecordingDisabled() override;
56 bool IsOffTheRecordSessionActive() override; 58 bool IsOffTheRecordSessionActive() override;
57 int32 GetProduct() override; 59 int32_t GetProduct() override;
58 std::string GetApplicationLocale() override; 60 std::string GetApplicationLocale() override;
59 bool GetBrand(std::string* brand_code) override; 61 bool GetBrand(std::string* brand_code) override;
60 metrics::SystemProfileProto::Channel GetChannel() override; 62 metrics::SystemProfileProto::Channel GetChannel() override;
61 std::string GetVersionString() override; 63 std::string GetVersionString() override;
62 void OnLogUploadComplete() override; 64 void OnLogUploadComplete() override;
63 void InitializeSystemProfileMetrics( 65 void InitializeSystemProfileMetrics(
64 const base::Closure& done_callback) override; 66 const base::Closure& done_callback) override;
65 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
66 scoped_ptr<metrics::MetricsLogUploader> CreateUploader( 68 scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
67 const base::Callback<void(int)>& on_upload_complete) override; 69 const base::Callback<void(int)>& on_upload_complete) override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Whether this client has already uploaded profiler data during this session. 155 // Whether this client has already uploaded profiler data during this session.
154 // Profiler data is uploaded at most once per session. 156 // Profiler data is uploaded at most once per session.
155 bool has_uploaded_profiler_data_; 157 bool has_uploaded_profiler_data_;
156 158
157 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; 159 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_;
158 160
159 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); 161 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient);
160 }; 162 };
161 163
162 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ 164 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698