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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 DOWNLOAD_CLOSE_BROWSER_SHUTDOWN, | 157 DOWNLOAD_CLOSE_BROWSER_SHUTDOWN, |
158 | 158 |
159 // There are active downloads associated with this incognito profile | 159 // There are active downloads associated with this incognito profile |
160 // that would be canceled. | 160 // that would be canceled. |
161 DOWNLOAD_CLOSE_LAST_WINDOW_IN_INCOGNITO_PROFILE, | 161 DOWNLOAD_CLOSE_LAST_WINDOW_IN_INCOGNITO_PROFILE, |
162 }; | 162 }; |
163 | 163 |
164 struct CreateParams { | 164 struct CreateParams { |
165 explicit CreateParams(Profile* profile); | 165 explicit CreateParams(Profile* profile); |
166 CreateParams(Type type, Profile* profile); | 166 CreateParams(Type type, Profile* profile); |
| 167 CreateParams(const CreateParams& other); |
167 | 168 |
168 static CreateParams CreateForApp(const std::string& app_name, | 169 static CreateParams CreateForApp(const std::string& app_name, |
169 bool trusted_source, | 170 bool trusted_source, |
170 const gfx::Rect& window_bounds, | 171 const gfx::Rect& window_bounds, |
171 Profile* profile); | 172 Profile* profile); |
172 | 173 |
173 static CreateParams CreateForDevTools(Profile* profile); | 174 static CreateParams CreateForDevTools(Profile* profile); |
174 | 175 |
175 // The browser type. | 176 // The browser type. |
176 Type type; | 177 Type type; |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 // The following factory is used for chrome update coalescing. | 1006 // The following factory is used for chrome update coalescing. |
1006 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1007 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1007 | 1008 |
1008 // The following factory is used to close the frame at a later time. | 1009 // The following factory is used to close the frame at a later time. |
1009 base::WeakPtrFactory<Browser> weak_factory_; | 1010 base::WeakPtrFactory<Browser> weak_factory_; |
1010 | 1011 |
1011 DISALLOW_COPY_AND_ASSIGN(Browser); | 1012 DISALLOW_COPY_AND_ASSIGN(Browser); |
1012 }; | 1013 }; |
1013 | 1014 |
1014 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1015 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |