Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/common/extensions/extension_process_policy.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_permission_set_unittest.cc ('k') | chrome/common/extensions/extension_process_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698