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

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

Issue 577823002: Moves ProfilerMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaase Created 6 years, 3 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 23 matching lines...) Expand all
34 // For use by ShowMissingLocaleMessageBox. 34 // For use by ShowMissingLocaleMessageBox.
35 #if defined(OS_WIN) 35 #if defined(OS_WIN)
36 extern const char kMissingLocaleDataTitle[]; 36 extern const char kMissingLocaleDataTitle[];
37 #endif 37 #endif
38 38
39 #if defined(OS_WIN) 39 #if defined(OS_WIN)
40 extern const char kMissingLocaleDataMessage[]; 40 extern const char kMissingLocaleDataMessage[];
41 #endif 41 #endif
42 } 42 }
43 43
44 namespace chrome_browser_metrics { 44 namespace metrics {
45 class TrackingSynchronizer; 45 class TrackingSynchronizer;
46 } 46 }
47 47
48 class ChromeBrowserMainParts : public content::BrowserMainParts { 48 class ChromeBrowserMainParts : public content::BrowserMainParts {
49 public: 49 public:
50 virtual ~ChromeBrowserMainParts(); 50 virtual ~ChromeBrowserMainParts();
51 51
52 // Add additional ChromeBrowserMainExtraParts. 52 // Add additional ChromeBrowserMainExtraParts.
53 virtual void AddParts(ChromeBrowserMainExtraParts* parts); 53 virtual void AddParts(ChromeBrowserMainExtraParts* parts);
54 54
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 scoped_ptr<ProcessPowerCollector> process_power_collector_; 147 scoped_ptr<ProcessPowerCollector> process_power_collector_;
148 #endif 148 #endif
149 149
150 // Vector of additional ChromeBrowserMainExtraParts. 150 // Vector of additional ChromeBrowserMainExtraParts.
151 // Parts are deleted in the inverse order they are added. 151 // Parts are deleted in the inverse order they are added.
152 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; 152 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_;
153 153
154 // Members initialized after / released before main_message_loop_ ------------ 154 // Members initialized after / released before main_message_loop_ ------------
155 155
156 scoped_ptr<BrowserProcessImpl> browser_process_; 156 scoped_ptr<BrowserProcessImpl> browser_process_;
157 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer> 157 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_;
158 tracking_synchronizer_;
159 #if !defined(OS_ANDROID) 158 #if !defined(OS_ANDROID)
160 // Browser creation happens on the Java side in Android. 159 // Browser creation happens on the Java side in Android.
161 scoped_ptr<StartupBrowserCreator> browser_creator_; 160 scoped_ptr<StartupBrowserCreator> browser_creator_;
162 161
163 // Android doesn't support multiple browser processes, so it doesn't implement 162 // Android doesn't support multiple browser processes, so it doesn't implement
164 // ProcessSingleton. 163 // ProcessSingleton.
165 scoped_ptr<ChromeProcessSingleton> process_singleton_; 164 scoped_ptr<ChromeProcessSingleton> process_singleton_;
166 165
167 // Android's first run is done in Java instead of native. 166 // Android's first run is done in Java instead of native.
168 scoped_ptr<first_run::MasterPrefs> master_prefs_; 167 scoped_ptr<first_run::MasterPrefs> master_prefs_;
(...skipping 15 matching lines...) Expand all
184 bool restart_last_session_; 183 bool restart_last_session_;
185 184
186 // Tests can set this to true to disable restricting cookie access in the 185 // Tests can set this to true to disable restricting cookie access in the
187 // network stack, as this can only be done once. 186 // network stack, as this can only be done once.
188 static bool disable_enforcing_cookie_policies_for_tests_; 187 static bool disable_enforcing_cookie_policies_for_tests_;
189 188
190 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 189 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
191 }; 190 };
192 191
193 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 192 #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