| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BROWSER_INIT_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_INIT_H_ |
| 6 #define CHROME_BROWSER_BROWSER_INIT_H_ | 6 #define CHROME_BROWSER_BROWSER_INIT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // urls_to_open is empty, the user specified set of URLs is openned. | 108 // urls_to_open is empty, the user specified set of URLs is openned. |
| 109 // | 109 // |
| 110 // Otherwise false is returned. | 110 // Otherwise false is returned. |
| 111 bool OpenStartupURLs(bool is_process_startup, | 111 bool OpenStartupURLs(bool is_process_startup, |
| 112 const std::vector<GURL>& urls_to_open); | 112 const std::vector<GURL>& urls_to_open); |
| 113 | 113 |
| 114 // If the last session didn't exit cleanly and tab is a web contents tab, | 114 // If the last session didn't exit cleanly and tab is a web contents tab, |
| 115 // an infobar is added allowing the user to restore the last session. | 115 // an infobar is added allowing the user to restore the last session. |
| 116 void AddCrashedInfoBarIfNecessary(TabContents* tab); | 116 void AddCrashedInfoBarIfNecessary(TabContents* tab); |
| 117 | 117 |
| 118 // If we have been started with unsupported flags like --single-process, |
| 119 // politely nag the user about it. |
| 120 void AddBadFlagsInfoBarIfNecessary(TabContents* tab); |
| 121 |
| 118 // Returns the list of URLs to open from the command line. The returned | 122 // Returns the list of URLs to open from the command line. The returned |
| 119 // vector is empty if the user didn't specify any URLs on the command line. | 123 // vector is empty if the user didn't specify any URLs on the command line. |
| 120 std::vector<GURL> GetURLsFromCommandLine(Profile* profile); | 124 std::vector<GURL> GetURLsFromCommandLine(Profile* profile); |
| 121 | 125 |
| 122 // Adds additional startup URLs to the specified vector. | 126 // Adds additional startup URLs to the specified vector. |
| 123 void AddStartupURLs(std::vector<GURL>* startup_urls) const; | 127 void AddStartupURLs(std::vector<GURL>* startup_urls) const; |
| 124 | 128 |
| 125 // Checks whether Chrome is still the default browser (unless the user | 129 // Checks whether Chrome is still the default browser (unless the user |
| 126 // previously instructed not to do so) and warns the user if it is not. | 130 // previously instructed not to do so) and warns the user if it is not. |
| 127 void CheckDefaultBrowser(Profile* profile); | 131 void CheckDefaultBrowser(Profile* profile); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 139 bool process_startup, Profile* profile, | 143 bool process_startup, Profile* profile, |
| 140 int* return_code, BrowserInit* browser_init); | 144 int* return_code, BrowserInit* browser_init); |
| 141 | 145 |
| 142 // Additional tabs to open during first run. | 146 // Additional tabs to open during first run. |
| 143 std::vector<GURL> first_run_tabs_; | 147 std::vector<GURL> first_run_tabs_; |
| 144 | 148 |
| 145 DISALLOW_COPY_AND_ASSIGN(BrowserInit); | 149 DISALLOW_COPY_AND_ASSIGN(BrowserInit); |
| 146 }; | 150 }; |
| 147 | 151 |
| 148 #endif // CHROME_BROWSER_BROWSER_INIT_H_ | 152 #endif // CHROME_BROWSER_BROWSER_INIT_H_ |
| OLD | NEW |