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

Side by Side Diff: components/metrics/test_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 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 COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 18 matching lines...) Expand all
29 int32_t GetProduct() override; 29 int32_t GetProduct() override;
30 std::string GetApplicationLocale() override; 30 std::string GetApplicationLocale() override;
31 bool GetBrand(std::string* brand_code) override; 31 bool GetBrand(std::string* brand_code) override;
32 SystemProfileProto::Channel GetChannel() override; 32 SystemProfileProto::Channel GetChannel() override;
33 std::string GetVersionString() override; 33 std::string GetVersionString() override;
34 void OnLogUploadComplete() override; 34 void OnLogUploadComplete() override;
35 void InitializeSystemProfileMetrics( 35 void InitializeSystemProfileMetrics(
36 const base::Closure& done_callback) override; 36 const base::Closure& done_callback) override;
37 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 37 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
38 std::unique_ptr<MetricsLogUploader> CreateUploader( 38 std::unique_ptr<MetricsLogUploader> CreateUploader(
39 const std::string& server_url,
40 const std::string& mime_type,
39 const base::Callback<void(int)>& on_upload_complete) override; 41 const base::Callback<void(int)>& on_upload_complete) override;
40 base::TimeDelta GetStandardUploadInterval() override; 42 base::TimeDelta GetStandardUploadInterval() override;
41 bool IsReportingPolicyManaged() override; 43 bool IsReportingPolicyManaged() override;
42 EnableMetricsDefault GetMetricsReportingDefaultState() override; 44 EnableMetricsDefault GetMetricsReportingDefaultState() override;
43 45
44 const std::string& get_client_id() const { return client_id_; } 46 const std::string& get_client_id() const { return client_id_; }
45 void set_version_string(const std::string& str) { version_string_ = str; } 47 void set_version_string(const std::string& str) { version_string_ = str; }
46 void set_product(int32_t product) { product_ = product; } 48 void set_product(int32_t product) { product_ = product; }
47 void set_reporting_is_managed(bool managed) { 49 void set_reporting_is_managed(bool managed) {
48 reporting_is_managed_ = managed; 50 reporting_is_managed_ = managed;
49 } 51 }
50 void set_enable_default(EnableMetricsDefault enable_default) { 52 void set_enable_default(EnableMetricsDefault enable_default) {
51 enable_default_ = enable_default; 53 enable_default_ = enable_default;
52 } 54 }
53 55
54 private: 56 private:
55 std::string client_id_; 57 std::string client_id_;
56 std::string version_string_; 58 std::string version_string_;
57 int32_t product_; 59 int32_t product_;
58 bool reporting_is_managed_; 60 bool reporting_is_managed_;
59 EnableMetricsDefault enable_default_; 61 EnableMetricsDefault enable_default_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); 63 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient);
62 }; 64 };
63 65
64 } // namespace metrics 66 } // namespace metrics
65 67
66 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 68 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/metrics_service_client.cc ('k') | components/metrics/test_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698