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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 // Commits the current instant, returning true on success. This is intended | 989 // Commits the current instant, returning true on success. This is intended |
990 // for use from OpenCurrentURL. | 990 // for use from OpenCurrentURL. |
991 bool OpenInstant(WindowOpenDisposition disposition); | 991 bool OpenInstant(WindowOpenDisposition disposition); |
992 | 992 |
993 // If this browser should have instant one is created, otherwise does nothing. | 993 // If this browser should have instant one is created, otherwise does nothing. |
994 void CreateInstantIfNecessary(); | 994 void CreateInstantIfNecessary(); |
995 | 995 |
996 // Opens view-source tab for given tab contents. | 996 // Opens view-source tab for given tab contents. |
997 void ViewSource(TabContentsWrapper* tab); | 997 void ViewSource(TabContentsWrapper* tab); |
998 | 998 |
999 // Inserts contents dupe next to the original contents. This method is used | |
1000 // to insert duplicate tab and view source tab next to the original tab. | |
1001 void InsertContentsDupe( | |
1002 TabContentsWrapper* original_content, | |
1003 TabContentsWrapper* clone_content); | |
1004 | |
1005 // Data members ///////////////////////////////////////////////////////////// | 999 // Data members ///////////////////////////////////////////////////////////// |
1006 | 1000 |
1007 NotificationRegistrar registrar_; | 1001 NotificationRegistrar registrar_; |
1008 | 1002 |
1009 // This Browser's type. | 1003 // This Browser's type. |
1010 const Type type_; | 1004 const Type type_; |
1011 | 1005 |
1012 // This Browser's profile. | 1006 // This Browser's profile. |
1013 Profile* const profile_; | 1007 Profile* const profile_; |
1014 | 1008 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 // and we install ourselves as an observer. | 1127 // and we install ourselves as an observer. |
1134 TabRestoreService* tab_restore_service_; | 1128 TabRestoreService* tab_restore_service_; |
1135 | 1129 |
1136 scoped_ptr<InstantController> instant_; | 1130 scoped_ptr<InstantController> instant_; |
1137 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1131 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
1138 | 1132 |
1139 DISALLOW_COPY_AND_ASSIGN(Browser); | 1133 DISALLOW_COPY_AND_ASSIGN(Browser); |
1140 }; | 1134 }; |
1141 | 1135 |
1142 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1136 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |