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

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

Issue 2386503002: With --isolate-extensions, forking (via OpenURL) for extensions is not needed.
Patch Set: Rebasing... Created 3 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
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/extensions/extension_process_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_
7
8 class GURL;
9
10 namespace extensions {
11
12 class Extension;
13 class ExtensionSet;
14
15 // Returns the extension for the given URL. Excludes extension objects for
16 // bookmark apps, which do not use the app process model.
17 const Extension* GetNonBookmarkAppExtension(const ExtensionSet& extensions,
18 const GURL& url);
19
20 // 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 // extension URL).
23 // We temporarily consider a workaround where we will keep non-app URLs in
24 // an app process, but only if |should_consider_workaround| is true. See
25 // http://crbug.com/59285.
26 bool CrossesExtensionProcessBoundary(
27 const ExtensionSet& extensions,
28 const GURL& old_url,
29 const GURL& new_url,
30 bool should_consider_workaround);
31
32 } // namespace extensions
33
34 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PROCESS_POLICY_H_
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/extensions/extension_process_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698