OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 } | 169 } |
170 | 170 |
171 // Creates the Browser Window. Prefer to use the static helpers above where | 171 // Creates the Browser Window. Prefer to use the static helpers above where |
172 // possible. This does not show the window. You need to call window()->Show() | 172 // possible. This does not show the window. You need to call window()->Show() |
173 // to show it. | 173 // to show it. |
174 void CreateBrowserWindow(); | 174 void CreateBrowserWindow(); |
175 | 175 |
176 // Accessors //////////////////////////////////////////////////////////////// | 176 // Accessors //////////////////////////////////////////////////////////////// |
177 | 177 |
178 Type type() const { return type_; } | 178 Type type() const { return type_; } |
179 const std::string& app_name() const { return app_name_; } | |
Evan Martin
2011/03/09 17:57:06
Hm, I wonder what encoding this is in.
| |
179 Profile* profile() const { return profile_; } | 180 Profile* profile() const { return profile_; } |
180 const std::vector<std::wstring>& user_data_dir_profiles() const; | 181 const std::vector<std::wstring>& user_data_dir_profiles() const; |
181 | 182 |
182 // Returns the InstantController or NULL if there is no InstantController for | 183 // Returns the InstantController or NULL if there is no InstantController for |
183 // this Browser. | 184 // this Browser. |
184 InstantController* instant() const { return instant_.get(); } | 185 InstantController* instant() const { return instant_.get(); } |
185 | 186 |
186 #if defined(UNIT_TEST) | 187 #if defined(UNIT_TEST) |
187 // Sets the BrowserWindow. This is intended for testing and generally not | 188 // Sets the BrowserWindow. This is intended for testing and generally not |
188 // useful outside of testing. Use CreateBrowserWindow outside of testing, or | 189 // useful outside of testing. Use CreateBrowserWindow outside of testing, or |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1143 // and we install ourselves as an observer. | 1144 // and we install ourselves as an observer. |
1144 TabRestoreService* tab_restore_service_; | 1145 TabRestoreService* tab_restore_service_; |
1145 | 1146 |
1146 scoped_ptr<InstantController> instant_; | 1147 scoped_ptr<InstantController> instant_; |
1147 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1148 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
1148 | 1149 |
1149 DISALLOW_COPY_AND_ASSIGN(Browser); | 1150 DISALLOW_COPY_AND_ASSIGN(Browser); |
1150 }; | 1151 }; |
1151 | 1152 |
1152 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1153 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |