OLD | NEW |
---|---|
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_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 Browser* browser, | 131 Browser* browser, |
132 chrome::startup::IsProcessStartup is_process_startup); | 132 chrome::startup::IsProcessStartup is_process_startup); |
133 | 133 |
134 // Adds additional startup URLs to the specified vector. | 134 // Adds additional startup URLs to the specified vector. |
135 void AddStartupURLs(std::vector<GURL>* startup_urls) const; | 135 void AddStartupURLs(std::vector<GURL>* startup_urls) const; |
136 | 136 |
137 // Checks whether the Preferences backup is invalid and notifies user in | 137 // Checks whether the Preferences backup is invalid and notifies user in |
138 // that case. | 138 // that case. |
139 void CheckPreferencesBackup(Profile* profile); | 139 void CheckPreferencesBackup(Profile* profile); |
140 | 140 |
141 // Starts developer tools HTTP protocol handler if needed. | |
142 static void LaunchDevToolsHandlerIfNeeded(Profile* profile, | |
143 const CommandLine& command_line); | |
144 | |
141 // Function to open startup urls in an existing Browser instance for the | 145 // Function to open startup urls in an existing Browser instance for the |
142 // profile passed in. Returns true on success. | 146 // profile passed in. Returns true on success. |
143 static bool OpenStartupURLsInExistingBrowser( | 147 static bool OpenStartupURLsInExistingBrowser( |
144 Profile* profile, | 148 Profile* profile, |
145 const std::vector<GURL>& startup_urls); | 149 const std::vector<GURL>& startup_urls); |
146 | 150 |
147 const FilePath cur_dir_; | 151 const FilePath cur_dir_; |
sky
2012/12/04 00:10:53
remove white space.
| |
148 const CommandLine& command_line_; | 152 const CommandLine& command_line_; |
149 Profile* profile_; | 153 Profile* profile_; |
150 StartupBrowserCreator* browser_creator_; | 154 StartupBrowserCreator* browser_creator_; |
151 bool is_first_run_; | 155 bool is_first_run_; |
152 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl); | 156 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreatorImpl); |
153 }; | 157 }; |
154 | 158 |
155 // Returns true if |profile| has exited uncleanly and has not been launched | 159 // Returns true if |profile| has exited uncleanly and has not been launched |
156 // after the unclean exit. | 160 // after the unclean exit. |
157 bool HasPendingUncleanExit(Profile* profile); | 161 bool HasPendingUncleanExit(Profile* profile); |
158 | 162 |
159 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ | 163 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_IMPL_H_ |
OLD | NEW |