| OLD | NEW | 
|    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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |    5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 
|    6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |    6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9  |    9  | 
|   10 #include "base/basictypes.h" |   10 #include "base/basictypes.h" | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   50   // Factory function. |   50   // Factory function. | 
|   51   static scoped_ptr<ChromeMetricsServiceClient> Create( |   51   static scoped_ptr<ChromeMetricsServiceClient> Create( | 
|   52       metrics::MetricsStateManager* state_manager, |   52       metrics::MetricsStateManager* state_manager, | 
|   53       PrefService* local_state); |   53       PrefService* local_state); | 
|   54  |   54  | 
|   55   // Registers local state prefs used by this class. |   55   // Registers local state prefs used by this class. | 
|   56   static void RegisterPrefs(PrefRegistrySimple* registry); |   56   static void RegisterPrefs(PrefRegistrySimple* registry); | 
|   57  |   57  | 
|   58   // metrics::MetricsServiceClient: |   58   // metrics::MetricsServiceClient: | 
|   59   void SetMetricsClientId(const std::string& client_id) override; |   59   void SetMetricsClientId(const std::string& client_id) override; | 
 |   60   void OnRecordingDisabled() override; | 
|   60   bool IsOffTheRecordSessionActive() override; |   61   bool IsOffTheRecordSessionActive() override; | 
|   61   int32 GetProduct() override; |   62   int32 GetProduct() override; | 
|   62   std::string GetApplicationLocale() override; |   63   std::string GetApplicationLocale() override; | 
|   63   bool GetBrand(std::string* brand_code) override; |   64   bool GetBrand(std::string* brand_code) override; | 
|   64   metrics::SystemProfileProto::Channel GetChannel() override; |   65   metrics::SystemProfileProto::Channel GetChannel() override; | 
|   65   std::string GetVersionString() override; |   66   std::string GetVersionString() override; | 
|   66   void OnLogUploadComplete() override; |   67   void OnLogUploadComplete() override; | 
|   67   void StartGatheringMetrics(const base::Closure& done_callback) override; |   68   void StartGatheringMetrics(const base::Closure& done_callback) override; | 
|   68   void CollectFinalMetrics(const base::Closure& done_callback) override; |   69   void CollectFinalMetrics(const base::Closure& done_callback) override; | 
|   69   scoped_ptr<metrics::MetricsLogUploader> CreateUploader( |   70   scoped_ptr<metrics::MetricsLogUploader> CreateUploader( | 
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  170   // The MemoryGrowthTracker instance that tracks memory usage growth in |  171   // The MemoryGrowthTracker instance that tracks memory usage growth in | 
|  171   // MemoryDetails. |  172   // MemoryDetails. | 
|  172   MemoryGrowthTracker memory_growth_tracker_; |  173   MemoryGrowthTracker memory_growth_tracker_; | 
|  173  |  174  | 
|  174   base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |  175   base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 
|  175  |  176  | 
|  176   DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |  177   DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 
|  177 }; |  178 }; | 
|  178  |  179  | 
|  179 #endif  // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |  180 #endif  // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 
| OLD | NEW |