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

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

Issue 1423063004: Allow Chrome to bind an Application request from mojo_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@callback
Patch Set: . Created 5 years, 1 month 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 "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"
11 #include "base/profiler/stack_sampling_profiler.h" 11 #include "base/profiler/stack_sampling_profiler.h"
12 #include "base/tracked_objects.h" 12 #include "base/tracked_objects.h"
13 #include "chrome/browser/chrome_browser_field_trials.h" 13 #include "chrome/browser/chrome_browser_field_trials.h"
14 #include "chrome/browser/chrome_process_singleton.h" 14 #include "chrome/browser/chrome_process_singleton.h"
15 #include "chrome/browser/first_run/first_run.h" 15 #include "chrome/browser/first_run/first_run.h"
16 #include "chrome/browser/process_singleton.h" 16 #include "chrome/browser/process_singleton.h"
17 #include "chrome/browser/stack_sampling_configuration.h" 17 #include "chrome/browser/stack_sampling_configuration.h"
18 #include "chrome/browser/ui/startup/startup_browser_creator.h" 18 #include "chrome/browser/ui/startup/startup_browser_creator.h"
19 #include "content/public/browser/browser_main_parts.h" 19 #include "content/public/browser/browser_main_parts.h"
20 #include "content/public/common/main_function_params.h" 20 #include "content/public/common/main_function_params.h"
21 21
22 class BrowserProcessImpl; 22 class BrowserProcessImpl;
23 class ChromeApplicationDelegate;
23 class ChromeBrowserMainExtraParts; 24 class ChromeBrowserMainExtraParts;
24 class FieldTrialSynchronizer; 25 class FieldTrialSynchronizer;
25 class MetricsService; 26 class MetricsService;
26 class PrefService; 27 class PrefService;
27 class ProcessPowerCollector; 28 class ProcessPowerCollector;
28 class Profile; 29 class Profile;
29 class StartupBrowserCreator; 30 class StartupBrowserCreator;
30 class StartupTimeBomb; 31 class StartupTimeBomb;
31 class ShutdownWatcherHelper; 32 class ShutdownWatcherHelper;
32 class ThreeDAPIObserver; 33 class ThreeDAPIObserver;
33 34
34 namespace chrome_browser { 35 namespace chrome_browser {
35 // For use by ShowMissingLocaleMessageBox. 36 // For use by ShowMissingLocaleMessageBox.
36 #if defined(OS_WIN) 37 #if defined(OS_WIN)
37 extern const char kMissingLocaleDataTitle[]; 38 extern const char kMissingLocaleDataTitle[];
38 #endif 39 #endif
39 40
40 #if defined(OS_WIN) 41 #if defined(OS_WIN)
41 extern const char kMissingLocaleDataMessage[]; 42 extern const char kMissingLocaleDataMessage[];
42 #endif 43 #endif
43 } 44 }
44 45
45 namespace metrics { 46 namespace metrics {
46 class TrackingSynchronizer; 47 class TrackingSynchronizer;
47 } 48 }
48 49
50 #if defined(MOJO_RUNNER_CLIENT)
51 namespace mojo {
52 class ApplicationImpl;
53 namespace runner {
54 class RunnerConnection;
55 }
56 }
57 #endif
58
49 namespace webusb { 59 namespace webusb {
50 class WebUsbBrowserClient; 60 class WebUsbBrowserClient;
51 class WebUsbDetector; 61 class WebUsbDetector;
52 } 62 }
53 63
54 class ChromeBrowserMainParts : public content::BrowserMainParts { 64 class ChromeBrowserMainParts : public content::BrowserMainParts {
55 public: 65 public:
56 ~ChromeBrowserMainParts() override; 66 ~ChromeBrowserMainParts() override;
57 67
58 // Add additional ChromeBrowserMainExtraParts. 68 // Add additional ChromeBrowserMainExtraParts.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; 194 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;
185 195
186 // Members initialized in PreMainMessageLoopRun, needed in 196 // Members initialized in PreMainMessageLoopRun, needed in
187 // PreMainMessageLoopRunThreadsCreated. 197 // PreMainMessageLoopRunThreadsCreated.
188 PrefService* local_state_; 198 PrefService* local_state_;
189 base::FilePath user_data_dir_; 199 base::FilePath user_data_dir_;
190 200
191 // Members needed across shutdown methods. 201 // Members needed across shutdown methods.
192 bool restart_last_session_; 202 bool restart_last_session_;
193 203
204 #if defined(MOJO_RUNNER_CLIENT)
205 scoped_ptr<mojo::runner::RunnerConnection> runner_connection_;
206 scoped_ptr<mojo::ApplicationImpl> application_impl_;
207 scoped_ptr<ChromeApplicationDelegate> application_delegate_;
208 #endif
209
194 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 210 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
195 }; 211 };
196 212
197 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 213 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698