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

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: merged web_usb_browser_client.* to web_usb_detector.* 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebUsbDetector;
35 36
36 namespace chrome_browser { 37 namespace chrome_browser {
37 // For use by ShowMissingLocaleMessageBox. 38 // For use by ShowMissingLocaleMessageBox.
38 #if defined(OS_WIN) 39 #if defined(OS_WIN)
39 extern const char kMissingLocaleDataTitle[]; 40 extern const char kMissingLocaleDataTitle[];
40 #endif 41 #endif
41 42
42 #if defined(OS_WIN) 43 #if defined(OS_WIN)
43 extern const char kMissingLocaleDataMessage[]; 44 extern const char kMissingLocaleDataMessage[];
44 #endif 45 #endif
45 } 46 }
46 47
47 namespace metrics { 48 namespace metrics {
48 class TrackingSynchronizer; 49 class TrackingSynchronizer;
49 } 50 }
50 51
51 namespace webusb {
52 class WebUsbBrowserClient;
53 class WebUsbDetector;
54 }
55
56 class ChromeBrowserMainParts : public content::BrowserMainParts { 52 class ChromeBrowserMainParts : public content::BrowserMainParts {
57 public: 53 public:
58 ~ChromeBrowserMainParts() override; 54 ~ChromeBrowserMainParts() override;
59 55
60 // Add additional ChromeBrowserMainExtraParts. 56 // Add additional ChromeBrowserMainExtraParts.
61 virtual void AddParts(ChromeBrowserMainExtraParts* parts); 57 virtual void AddParts(ChromeBrowserMainExtraParts* parts);
62 58
63 protected: 59 protected:
64 explicit ChromeBrowserMainParts( 60 explicit ChromeBrowserMainParts(
65 const content::MainFunctionParams& parameters); 61 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 140 // Statistical testing infrastructure for the entire browser. NULL until
145 // SetupMetricsAndFieldTrials is called. 141 // SetupMetricsAndFieldTrials is called.
146 std::unique_ptr<base::FieldTrialList> field_trial_list_; 142 std::unique_ptr<base::FieldTrialList> field_trial_list_;
147 143
148 ChromeBrowserFieldTrials browser_field_trials_; 144 ChromeBrowserFieldTrials browser_field_trials_;
149 145
150 #if !defined(OS_ANDROID) && !defined(OS_IOS) 146 #if !defined(OS_ANDROID) && !defined(OS_IOS)
151 // A monitor for attributing power consumption to origins. 147 // A monitor for attributing power consumption to origins.
152 std::unique_ptr<ProcessPowerCollector> process_power_collector_; 148 std::unique_ptr<ProcessPowerCollector> process_power_collector_;
153 149
154 std::unique_ptr<webusb::WebUsbBrowserClient> webusb_browser_client_; 150 std::unique_ptr<WebUsbDetector> web_usb_detector_;
155 std::unique_ptr<webusb::WebUsbDetector> webusb_detector_;
156 #endif 151 #endif
157 152
158 // Vector of additional ChromeBrowserMainExtraParts. 153 // Vector of additional ChromeBrowserMainExtraParts.
159 // Parts are deleted in the inverse order they are added. 154 // Parts are deleted in the inverse order they are added.
160 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; 155 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_;
161 156
162 // The configuration to use for the stack sampling profiler below. 157 // The configuration to use for the stack sampling profiler below.
163 StackSamplingConfiguration sampling_profiler_config_; 158 StackSamplingConfiguration sampling_profiler_config_;
164 159
165 // A profiler that periodically samples stack traces. Used to sample startup 160 // A profiler that periodically samples stack traces. Used to sample startup
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 193
199 // Members initialized in PreMainMessageLoopRun, needed in 194 // Members initialized in PreMainMessageLoopRun, needed in
200 // PreMainMessageLoopRunThreadsCreated. 195 // PreMainMessageLoopRunThreadsCreated.
201 PrefService* local_state_; 196 PrefService* local_state_;
202 base::FilePath user_data_dir_; 197 base::FilePath user_data_dir_;
203 198
204 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 199 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
205 }; 200 };
206 201
207 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 202 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698