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

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

Issue 2614533002: Add server_url and mime_type params to CreateUploader. (Closed)
Patch Set: Missing Include 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 55 void OnLogUploadComplete() override;
56 void InitializeSystemProfileMetrics( 56 void InitializeSystemProfileMetrics(
57 const base::Closure& done_callback) override; 57 const base::Closure& done_callback) override;
58 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 58 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
59 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 59 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
60 const std::string& server_url,
61 const std::string& mime_type,
60 const base::Callback<void(int)>& on_upload_complete) override; 62 const base::Callback<void(int)>& on_upload_complete) override;
61 base::TimeDelta GetStandardUploadInterval() override; 63 base::TimeDelta GetStandardUploadInterval() override;
62 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override; 64 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
63 65
64 // metrics::EnabledStateProvider implementation. 66 // metrics::EnabledStateProvider implementation.
65 // Returns if consent is given for the MetricsService to record metrics 67 // Returns if consent is given for the MetricsService to record metrics
66 // information for the client. Always true. 68 // information for the client. Always true.
67 bool IsConsentGiven() override; 69 bool IsConsentGiven() override;
68 70
69 private: 71 private:
70 // Used by NetMetricsLogUploader to create log-upload requests. 72 // Used by NetMetricsLogUploader to create log-upload requests.
71 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 73 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
72 74
73 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; 75 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_;
74 std::unique_ptr<metrics::MetricsService> metrics_service_; 76 std::unique_ptr<metrics::MetricsService> metrics_service_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient); 78 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient);
77 }; 79 };
78 80
79 } // namespace engine 81 } // namespace engine
80 } // namespace blimp 82 } // namespace blimp
81 83
82 #endif // BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ 84 #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