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_EXTENSIONS_EXTENSION_TAB_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "chrome/common/extensions/api/tabs.h" | 12 #include "chrome/common/extensions/api/tabs.h" |
13 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
14 | 14 |
15 class Browser; | 15 class Browser; |
16 class ChromeExtensionFunctionDetails; | 16 class ChromeExtensionFunctionDetails; |
17 class ChromeUIThreadExtensionFunction; | 17 class ChromeUIThreadExtensionFunction; |
18 class ExtensionFunction; | |
19 class GURL; | 18 class GURL; |
20 class Profile; | |
21 class TabStripModel; | 19 class TabStripModel; |
22 class UIThreadExtensionFunction; | 20 class UIThreadExtensionFunction; |
23 | 21 |
24 namespace base { | 22 namespace base { |
25 class DictionaryValue; | 23 class DictionaryValue; |
26 class ListValue; | 24 class ListValue; |
27 } | 25 } |
28 | 26 |
29 namespace content { | 27 namespace content { |
30 class BrowserContext; | 28 class BrowserContext; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 static bool OpenOptionsPage(const Extension* extension, Browser* browser); | 173 static bool OpenOptionsPage(const Extension* extension, Browser* browser); |
176 | 174 |
177 // Returns true if the given Browser can report tabs to extensions. | 175 // Returns true if the given Browser can report tabs to extensions. |
178 // Example of Browsers which don't support tabs include apps and devtools. | 176 // Example of Browsers which don't support tabs include apps and devtools. |
179 static bool BrowserSupportsTabs(Browser* browser); | 177 static bool BrowserSupportsTabs(Browser* browser); |
180 }; | 178 }; |
181 | 179 |
182 } // namespace extensions | 180 } // namespace extensions |
183 | 181 |
184 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ | 182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
OLD | NEW |