| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
| 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "chrome/browser/prefs/session_startup_pref.h" | 15 #include "chrome/browser/prefs/session_startup_pref.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/ui/startup/startup_types.h" | 17 #include "chrome/browser/ui/startup/startup_types.h" |
| 18 #include "chrome/browser/ui/startup/startup_tab.h" | 18 #include "chrome/browser/ui/startup/startup_tab.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 | 20 |
| 21 class Browser; | 21 class Browser; |
| 22 class CommandLine; | 22 class CommandLine; |
| 23 class GURL; | 23 class GURL; |
| 24 class PrefService; | 24 class PrefService; |
| 25 class TabContentsWrapper; | 25 class TabContents; |
| 26 typedef TabContents TabContentsWrapper; |
| 26 | 27 |
| 27 // class containing helpers for BrowserMain to spin up a new instance and | 28 // class containing helpers for BrowserMain to spin up a new instance and |
| 28 // initialize the profile. | 29 // initialize the profile. |
| 29 class StartupBrowserCreator { | 30 class StartupBrowserCreator { |
| 30 public: | 31 public: |
| 31 typedef std::vector<Profile*> Profiles; | 32 typedef std::vector<Profile*> Profiles; |
| 32 | 33 |
| 33 StartupBrowserCreator(); | 34 StartupBrowserCreator(); |
| 34 ~StartupBrowserCreator(); | 35 ~StartupBrowserCreator(); |
| 35 | 36 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 122 |
| 122 // True if we have already read and reset the preference kWasRestarted. (A | 123 // True if we have already read and reset the preference kWasRestarted. (A |
| 123 // member variable instead of a static variable inside WasRestarted because | 124 // member variable instead of a static variable inside WasRestarted because |
| 124 // of testing.) | 125 // of testing.) |
| 125 static bool was_restarted_read_; | 126 static bool was_restarted_read_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); | 128 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 131 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
| OLD | NEW |