OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class Extension; | |
10 class ExtensionSet; | 9 class ExtensionSet; |
11 class ExtensionURLInfo; | 10 class ExtensionURLInfo; |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
| 14 class Extension; |
| 15 |
15 // Returns the extension for the given URL. Excludes extension objects for | 16 // Returns the extension for the given URL. Excludes extension objects for |
16 // bookmark apps, which do not use the app process model. | 17 // bookmark apps, which do not use the app process model. |
17 const Extension* GetNonBookmarkAppExtension(const ExtensionSet& extensions, | 18 const Extension* GetNonBookmarkAppExtension(const ExtensionSet& extensions, |
18 const ExtensionURLInfo& url); | 19 const ExtensionURLInfo& url); |
19 | 20 |
20 // Check if navigating a toplevel page from |old_url| to |new_url| would cross | 21 // Check if navigating a toplevel page from |old_url| to |new_url| would cross |
21 // an extension process boundary (e.g. navigating from a web URL into an | 22 // an extension process boundary (e.g. navigating from a web URL into an |
22 // extension URL). | 23 // extension URL). |
23 bool CrossesExtensionProcessBoundary( | 24 bool CrossesExtensionProcessBoundary( |
24 const ExtensionSet& extensions, | 25 const ExtensionSet& extensions, |
25 const ExtensionURLInfo& old_url, | 26 const ExtensionURLInfo& old_url, |
26 const ExtensionURLInfo& new_url); | 27 const ExtensionURLInfo& new_url); |
27 | 28 |
28 } // namespace extensions | 29 } // namespace extensions |
29 | 30 |
30 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ | 31 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_ |
OLD | NEW |