| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // Set indicator that this browser is being created via session restore. | 226 // Set indicator that this browser is being created via session restore. |
| 227 // This is used on the Mac (only) to determine animation style when the | 227 // This is used on the Mac (only) to determine animation style when the |
| 228 // browser window is shown. | 228 // browser window is shown. |
| 229 void set_is_session_restore(bool is_session_restore) { | 229 void set_is_session_restore(bool is_session_restore) { |
| 230 is_session_restore_ = is_session_restore; | 230 is_session_restore_ = is_session_restore; |
| 231 } | 231 } |
| 232 bool is_session_restore() const { | 232 bool is_session_restore() const { |
| 233 return is_session_restore_; | 233 return is_session_restore_; |
| 234 } | 234 } |
| 235 | 235 |
| 236 ::rappor::RapporService* getRapporService() override; |
| 237 |
| 236 // Accessors //////////////////////////////////////////////////////////////// | 238 // Accessors //////////////////////////////////////////////////////////////// |
| 237 | 239 |
| 238 Type type() const { return type_; } | 240 Type type() const { return type_; } |
| 239 const std::string& app_name() const { return app_name_; } | 241 const std::string& app_name() const { return app_name_; } |
| 240 bool is_trusted_source() const { return is_trusted_source_; } | 242 bool is_trusted_source() const { return is_trusted_source_; } |
| 241 Profile* profile() const { return profile_; } | 243 Profile* profile() const { return profile_; } |
| 242 gfx::Rect override_bounds() const { return override_bounds_; } | 244 gfx::Rect override_bounds() const { return override_bounds_; } |
| 243 const std::string& initial_workspace() const { return initial_workspace_; } | 245 const std::string& initial_workspace() const { return initial_workspace_; } |
| 244 | 246 |
| 245 // |window()| will return NULL if called before |CreateBrowserWindow()| | 247 // |window()| will return NULL if called before |CreateBrowserWindow()| |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 // The following factory is used for chrome update coalescing. | 1012 // The following factory is used for chrome update coalescing. |
| 1011 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1013 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
| 1012 | 1014 |
| 1013 // The following factory is used to close the frame at a later time. | 1015 // The following factory is used to close the frame at a later time. |
| 1014 base::WeakPtrFactory<Browser> weak_factory_; | 1016 base::WeakPtrFactory<Browser> weak_factory_; |
| 1015 | 1017 |
| 1016 DISALLOW_COPY_AND_ASSIGN(Browser); | 1018 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1017 }; | 1019 }; |
| 1018 | 1020 |
| 1019 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1021 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |