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

Side by Side Diff: android_webview/browser/aw_metrics_service_client.h

Issue 1859213002: Move the thread hop for UMA user actions from content:: to base::. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Answered Ilya. Rebased. Created 4 years, 8 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 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 ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool GetBrand(std::string* brand_code) override; 59 bool GetBrand(std::string* brand_code) override;
60 metrics::SystemProfileProto::Channel GetChannel() override; 60 metrics::SystemProfileProto::Channel GetChannel() override;
61 std::string GetVersionString() override; 61 std::string GetVersionString() override;
62 void OnLogUploadComplete() override; 62 void OnLogUploadComplete() override;
63 void InitializeSystemProfileMetrics( 63 void InitializeSystemProfileMetrics(
64 const base::Closure& done_callback) override; 64 const base::Closure& done_callback) override;
65 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 65 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
66 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 66 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
67 const base::Callback<void(int)>& on_upload_complete) override; 67 const base::Callback<void(int)>& on_upload_complete) override;
68 base::TimeDelta GetStandardUploadInterval() override; 68 base::TimeDelta GetStandardUploadInterval() override;
69 scoped_refptr<base::SingleThreadTaskRunner>
70 GetMainThreadTaskRunner() override;
69 71
70 private: 72 private:
71 AwMetricsServiceClient(); 73 AwMetricsServiceClient();
72 ~AwMetricsServiceClient() override; 74 ~AwMetricsServiceClient() override;
73 75
74 void InitializeWithGUID(std::string* guid); 76 void InitializeWithGUID(std::string* guid);
75 77
76 // Callback for metrics::MetricsStateManager::Create 78 // Callback for metrics::MetricsStateManager::Create
77 bool is_reporting_enabled(); 79 bool is_reporting_enabled();
78 80
79 bool is_initialized_; 81 bool is_initialized_;
80 bool is_enabled_; 82 bool is_enabled_;
81 PrefService* pref_service_; 83 PrefService* pref_service_;
82 net::URLRequestContextGetter* request_context_; 84 net::URLRequestContextGetter* request_context_;
83 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; 85 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_;
84 std::unique_ptr<metrics::MetricsService> metrics_service_; 86 std::unique_ptr<metrics::MetricsService> metrics_service_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); 88 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient);
87 }; 89 };
88 90
89 } // namespace android_webview 91 } // namespace android_webview
90 92
91 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ 93 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_metrics_service_client.cc » ('j') | base/metrics/user_metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698