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_LIST_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_LIST_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_LIST_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_LIST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 static bool IsOffTheRecordSessionActiveForProfile(Profile* profile); | 90 static bool IsOffTheRecordSessionActiveForProfile(Profile* profile); |
91 | 91 |
92 private: | 92 private: |
93 // DO NOT ADD MORE FRIENDS TO THIS LIST. This list should be reduced over | 93 // DO NOT ADD MORE FRIENDS TO THIS LIST. This list should be reduced over |
94 // time by wiring context through to the relevant code rather than using | 94 // time by wiring context through to the relevant code rather than using |
95 // GetLastActive(). | 95 // GetLastActive(). |
96 friend class BrowserView; | 96 friend class BrowserView; |
97 friend class ChromeShellDelegate; | 97 friend class ChromeShellDelegate; |
98 friend class NetworkProfileBubble; | 98 friend class NetworkProfileBubble; |
99 friend class PrintPreviewHandler; | 99 friend class PrintPreviewHandler; |
100 friend class SelectFileDialogExtension; | 100 friend class SelectFileDialogExtensionViews; |
101 friend class StartupBrowserCreatorImpl; | 101 friend class StartupBrowserCreatorImpl; |
102 friend class TaskManager; | 102 friend class TaskManager; |
103 friend class WindowSizer; | 103 friend class WindowSizer; |
104 friend class browser::BrowserActivityObserver; | 104 friend class browser::BrowserActivityObserver; |
105 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
106 friend class chromeos::ScreenLocker; | 106 friend class chromeos::ScreenLocker; |
107 #endif | 107 #endif |
108 #if defined(OS_MACOSX) | 108 #if defined(OS_MACOSX) |
109 friend Browser* browser::GetLastActiveBrowser(); | 109 friend Browser* browser::GetLastActiveBrowser(); |
110 #endif | 110 #endif |
(...skipping 11 matching lines...) Expand all Loading... |
122 // a browser does not become active (perhaps the user launches Chrome, then | 122 // a browser does not become active (perhaps the user launches Chrome, then |
123 // clicks on another app before the first browser window appears) then this | 123 // clicks on another app before the first browser window appears) then this |
124 // returns NULL. | 124 // returns NULL. |
125 // WARNING #2: this will always be NULL in unit tests run on the bots. | 125 // WARNING #2: this will always be NULL in unit tests run on the bots. |
126 // THIS FUNCTION IS PRIVATE AND NOT TO BE USED AS A REPLACEMENT FOR RELEVANT | 126 // THIS FUNCTION IS PRIVATE AND NOT TO BE USED AS A REPLACEMENT FOR RELEVANT |
127 // CONTEXT. | 127 // CONTEXT. |
128 static Browser* GetLastActive(); | 128 static Browser* GetLastActive(); |
129 }; | 129 }; |
130 | 130 |
131 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ | 131 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ |
OLD | NEW |