| OLD | NEW |
| 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 IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ | 5 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ |
| 6 #define IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ | 6 #define IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
| 12 #include "ios/web/public/app/web_main_parts.h" | 13 #include "ios/web/public/app/web_main_parts.h" |
| 13 | 14 |
| 14 class ApplicationContextImpl; | 15 class ApplicationContextImpl; |
| 15 class PrefService; | 16 class PrefService; |
| 16 | 17 |
| 17 namespace metrics { | 18 namespace metrics { |
| 18 class TrackingSynchronizer; | 19 class TrackingSynchronizer; |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 // creation of field trials. Call only after labs have been converted to | 40 // creation of field trials. Call only after labs have been converted to |
| 40 // switches. | 41 // switches. |
| 41 void SetUpMetricsAndFieldTrials(); | 42 void SetUpMetricsAndFieldTrials(); |
| 42 | 43 |
| 43 // Starts recording of metrics. This can only be called after we have a file | 44 // Starts recording of metrics. This can only be called after we have a file |
| 44 // thread. | 45 // thread. |
| 45 void StartMetricsRecording(); | 46 void StartMetricsRecording(); |
| 46 | 47 |
| 47 const base::CommandLine& parsed_command_line_; | 48 const base::CommandLine& parsed_command_line_; |
| 48 | 49 |
| 49 scoped_ptr<ApplicationContextImpl> application_context_; | 50 std::unique_ptr<ApplicationContextImpl> application_context_; |
| 50 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_; | 51 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_; |
| 51 | 52 |
| 52 // Statistical testing infrastructure for the entire browser. NULL until | 53 // Statistical testing infrastructure for the entire browser. NULL until |
| 53 // SetUpMetricsAndFieldTrials is called. | 54 // SetUpMetricsAndFieldTrials is called. |
| 54 scoped_ptr<base::FieldTrialList> field_trial_list_; | 55 std::unique_ptr<base::FieldTrialList> field_trial_list_; |
| 55 | 56 |
| 56 PrefService* local_state_; | 57 PrefService* local_state_; |
| 57 | 58 |
| 58 // Initialized in SetupMetricsAndFieldTrials. | 59 // Initialized in SetupMetricsAndFieldTrials. |
| 59 scoped_ptr<ios::FieldTrialSynchronizer> field_trial_synchronizer_; | 60 std::unique_ptr<ios::FieldTrialSynchronizer> field_trial_synchronizer_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(IOSChromeMainParts); | 62 DISALLOW_COPY_AND_ASSIGN(IOSChromeMainParts); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 #endif // IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ | 65 #endif // IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ |
| OLD | NEW |