| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 void FindInPage(bool find_next, bool forward_direction); | 952 void FindInPage(bool find_next, bool forward_direction); |
| 953 | 953 |
| 954 // Closes the frame. | 954 // Closes the frame. |
| 955 // TODO(beng): figure out if we need this now that the frame itself closes | 955 // TODO(beng): figure out if we need this now that the frame itself closes |
| 956 // after a return to the message loop. | 956 // after a return to the message loop. |
| 957 void CloseFrame(); | 957 void CloseFrame(); |
| 958 | 958 |
| 959 void TabDetachedAtImpl(TabContentsWrapper* contents, | 959 void TabDetachedAtImpl(TabContentsWrapper* contents, |
| 960 int index, DetachType type); | 960 int index, DetachType type); |
| 961 | 961 |
| 962 // Create a preference dictionary for the provided application name, in the | 962 // Create a preference dictionary for the provided application name. This is |
| 963 // given user profile. This is done only once per application name / per | 963 // done only once per application name / per session. |
| 964 // session / per user profile. | 964 static void RegisterAppPrefs(const std::string& app_name); |
| 965 static void RegisterAppPrefs(const std::string& app_name, Profile* profile); | |
| 966 | 965 |
| 967 // Shared code between Reload() and ReloadIgnoringCache(). | 966 // Shared code between Reload() and ReloadIgnoringCache(). |
| 968 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); | 967 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); |
| 969 | 968 |
| 970 // Return true if the window dispositions means opening a new tab. | 969 // Return true if the window dispositions means opening a new tab. |
| 971 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); | 970 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); |
| 972 | 971 |
| 973 // Depending on the disposition, return the current tab or a clone of the | 972 // Depending on the disposition, return the current tab or a clone of the |
| 974 // current tab. | 973 // current tab. |
| 975 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); | 974 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 // and we install ourselves as an observer. | 1138 // and we install ourselves as an observer. |
| 1140 TabRestoreService* tab_restore_service_; | 1139 TabRestoreService* tab_restore_service_; |
| 1141 | 1140 |
| 1142 scoped_ptr<InstantController> instant_; | 1141 scoped_ptr<InstantController> instant_; |
| 1143 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1142 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1144 | 1143 |
| 1145 DISALLOW_COPY_AND_ASSIGN(Browser); | 1144 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1146 }; | 1145 }; |
| 1147 | 1146 |
| 1148 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1147 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |