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

Side by Side Diff: chrome/browser/chrome_browser_main.h

Issue 2146663002: Move //components/webusb/ to //chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix variable names Created 4 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROME_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 class ChromeBrowserMainExtraParts; 25 class ChromeBrowserMainExtraParts;
26 class FieldTrialSynchronizer; 26 class FieldTrialSynchronizer;
27 class MetricsService; 27 class MetricsService;
28 class PrefService; 28 class PrefService;
29 class ProcessPowerCollector; 29 class ProcessPowerCollector;
30 class Profile; 30 class Profile;
31 class StartupBrowserCreator; 31 class StartupBrowserCreator;
32 class StartupTimeBomb; 32 class StartupTimeBomb;
33 class ShutdownWatcherHelper; 33 class ShutdownWatcherHelper;
34 class ThreeDAPIObserver; 34 class ThreeDAPIObserver;
35 class WebUsbBrowserClient;
36 class WebUsbDetector;
35 37
36 namespace chrome_browser { 38 namespace chrome_browser {
37 // For use by ShowMissingLocaleMessageBox. 39 // For use by ShowMissingLocaleMessageBox.
38 #if defined(OS_WIN) 40 #if defined(OS_WIN)
39 extern const char kMissingLocaleDataTitle[]; 41 extern const char kMissingLocaleDataTitle[];
40 #endif 42 #endif
41 43
42 #if defined(OS_WIN) 44 #if defined(OS_WIN)
43 extern const char kMissingLocaleDataMessage[]; 45 extern const char kMissingLocaleDataMessage[];
44 #endif 46 #endif
45 } 47 }
46 48
47 namespace metrics { 49 namespace metrics {
48 class TrackingSynchronizer; 50 class TrackingSynchronizer;
49 } 51 }
50 52
51 namespace webusb {
52 class WebUsbBrowserClient;
53 class WebUsbDetector;
54 }
55
56 class ChromeBrowserMainParts : public content::BrowserMainParts { 53 class ChromeBrowserMainParts : public content::BrowserMainParts {
57 public: 54 public:
58 ~ChromeBrowserMainParts() override; 55 ~ChromeBrowserMainParts() override;
59 56
60 // Add additional ChromeBrowserMainExtraParts. 57 // Add additional ChromeBrowserMainExtraParts.
61 virtual void AddParts(ChromeBrowserMainExtraParts* parts); 58 virtual void AddParts(ChromeBrowserMainExtraParts* parts);
62 59
63 protected: 60 protected:
64 explicit ChromeBrowserMainParts( 61 explicit ChromeBrowserMainParts(
65 const content::MainFunctionParams& parameters); 62 const content::MainFunctionParams& parameters);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Statistical testing infrastructure for the entire browser. NULL until 141 // Statistical testing infrastructure for the entire browser. NULL until
145 // SetupMetricsAndFieldTrials is called. 142 // SetupMetricsAndFieldTrials is called.
146 std::unique_ptr<base::FieldTrialList> field_trial_list_; 143 std::unique_ptr<base::FieldTrialList> field_trial_list_;
147 144
148 ChromeBrowserFieldTrials browser_field_trials_; 145 ChromeBrowserFieldTrials browser_field_trials_;
149 146
150 #if !defined(OS_ANDROID) && !defined(OS_IOS) 147 #if !defined(OS_ANDROID) && !defined(OS_IOS)
151 // A monitor for attributing power consumption to origins. 148 // A monitor for attributing power consumption to origins.
152 std::unique_ptr<ProcessPowerCollector> process_power_collector_; 149 std::unique_ptr<ProcessPowerCollector> process_power_collector_;
153 150
154 std::unique_ptr<webusb::WebUsbBrowserClient> webusb_browser_client_; 151 std::unique_ptr<WebUsbBrowserClient> web_usb_browser_client_;
155 std::unique_ptr<webusb::WebUsbDetector> webusb_detector_; 152 std::unique_ptr<WebUsbDetector> web_usb_detector_;
156 #endif 153 #endif
157 154
158 // Vector of additional ChromeBrowserMainExtraParts. 155 // Vector of additional ChromeBrowserMainExtraParts.
159 // Parts are deleted in the inverse order they are added. 156 // Parts are deleted in the inverse order they are added.
160 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; 157 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_;
161 158
162 // The configuration to use for the stack sampling profiler below. 159 // The configuration to use for the stack sampling profiler below.
163 StackSamplingConfiguration sampling_profiler_config_; 160 StackSamplingConfiguration sampling_profiler_config_;
164 161
165 // A profiler that periodically samples stack traces. Used to sample startup 162 // A profiler that periodically samples stack traces. Used to sample startup
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 195
199 // Members initialized in PreMainMessageLoopRun, needed in 196 // Members initialized in PreMainMessageLoopRun, needed in
200 // PreMainMessageLoopRunThreadsCreated. 197 // PreMainMessageLoopRunThreadsCreated.
201 PrefService* local_state_; 198 PrefService* local_state_;
202 base::FilePath user_data_dir_; 199 base::FilePath user_data_dir_;
203 200
204 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 201 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
205 }; 202 };
206 203
207 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 204 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698