| 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 TabContents; | 25 class TabContents; |
| 26 typedef TabContents TabContentsWrapper; | |
| 27 | 26 |
| 28 // class containing helpers for BrowserMain to spin up a new instance and | 27 // class containing helpers for BrowserMain to spin up a new instance and |
| 29 // initialize the profile. | 28 // initialize the profile. |
| 30 class StartupBrowserCreator { | 29 class StartupBrowserCreator { |
| 31 public: | 30 public: |
| 32 typedef std::vector<Profile*> Profiles; | 31 typedef std::vector<Profile*> Profiles; |
| 33 | 32 |
| 34 StartupBrowserCreator(); | 33 StartupBrowserCreator(); |
| 35 ~StartupBrowserCreator(); | 34 ~StartupBrowserCreator(); |
| 36 | 35 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 121 |
| 123 // True if we have already read and reset the preference kWasRestarted. (A | 122 // True if we have already read and reset the preference kWasRestarted. (A |
| 124 // member variable instead of a static variable inside WasRestarted because | 123 // member variable instead of a static variable inside WasRestarted because |
| 125 // of testing.) | 124 // of testing.) |
| 126 static bool was_restarted_read_; | 125 static bool was_restarted_read_; |
| 127 | 126 |
| 128 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); | 127 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ | 130 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ |
| OLD | NEW |