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

Side by Side Diff: blimp/engine/app/blimp_metrics_service_client.h

Issue 2615753002: Remove time ticks metrics and MetricServiceClient::OnLogUploadComplete (Closed)
Patch Set: Rebase Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ 5 #ifndef BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_
6 #define BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ 6 #define BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ~BlimpMetricsServiceClient() override; 45 ~BlimpMetricsServiceClient() override;
46 46
47 // metrics::MetricsServiceClient implementation. 47 // metrics::MetricsServiceClient implementation.
48 metrics::MetricsService* GetMetricsService() override; 48 metrics::MetricsService* GetMetricsService() override;
49 void SetMetricsClientId(const std::string& client_id) override; 49 void SetMetricsClientId(const std::string& client_id) override;
50 int32_t GetProduct() override; 50 int32_t GetProduct() override;
51 std::string GetApplicationLocale() override; 51 std::string GetApplicationLocale() override;
52 bool GetBrand(std::string* brand_code) override; 52 bool GetBrand(std::string* brand_code) override;
53 metrics::SystemProfileProto::Channel GetChannel() override; 53 metrics::SystemProfileProto::Channel GetChannel() override;
54 std::string GetVersionString() override; 54 std::string GetVersionString() override;
55 void OnLogUploadComplete() override;
56 void InitializeSystemProfileMetrics( 55 void InitializeSystemProfileMetrics(
57 const base::Closure& done_callback) override; 56 const base::Closure& done_callback) override;
58 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 57 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
59 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 58 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
60 const std::string& server_url, 59 const std::string& server_url,
61 const std::string& mime_type, 60 const std::string& mime_type,
62 const base::Callback<void(int)>& on_upload_complete) override; 61 const base::Callback<void(int)>& on_upload_complete) override;
63 base::TimeDelta GetStandardUploadInterval() override; 62 base::TimeDelta GetStandardUploadInterval() override;
64 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override; 63 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
65 64
66 // metrics::EnabledStateProvider implementation. 65 // metrics::EnabledStateProvider implementation.
67 // Returns if consent is given for the MetricsService to record metrics 66 // Returns if consent is given for the MetricsService to record metrics
68 // information for the client. Always true. 67 // information for the client. Always true.
69 bool IsConsentGiven() override; 68 bool IsConsentGiven() override;
70 69
71 private: 70 private:
72 // Used by NetMetricsLogUploader to create log-upload requests. 71 // Used by NetMetricsLogUploader to create log-upload requests.
73 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 72 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
74 73
75 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; 74 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_;
76 std::unique_ptr<metrics::MetricsService> metrics_service_; 75 std::unique_ptr<metrics::MetricsService> metrics_service_;
77 76
78 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient); 77 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient);
79 }; 78 };
80 79
81 } // namespace engine 80 } // namespace engine
82 } // namespace blimp 81 } // namespace blimp
83 82
84 #endif // BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ 83 #endif // BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_metrics_service_client.cc ('k') | blimp/engine/app/blimp_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698