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

Side by Side Diff: extensions/browser/extension_util.h

Issue 2758103003: Extensions: Move IsIncognitoEnabled to extensions/ from chrome/. (Closed)
Patch Set: Address review Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class GURL; 10 class GURL;
(...skipping 17 matching lines...) Expand all
28 bool HasIsolatedStorage(const ExtensionInfo& info); 28 bool HasIsolatedStorage(const ExtensionInfo& info);
29 29
30 // Returns true if the site URL corresponds to an extension or app and has 30 // Returns true if the site URL corresponds to an extension or app and has
31 // isolated storage. 31 // isolated storage.
32 bool SiteHasIsolatedStorage(const GURL& extension_site_url, 32 bool SiteHasIsolatedStorage(const GURL& extension_site_url,
33 content::BrowserContext* context); 33 content::BrowserContext* context);
34 34
35 // Returns true if the extension can be enabled in incognito mode. 35 // Returns true if the extension can be enabled in incognito mode.
36 bool CanBeIncognitoEnabled(const Extension* extension); 36 bool CanBeIncognitoEnabled(const Extension* extension);
37 37
38 // Returns true if |extension_id| can run in an incognito window.
39 bool IsIncognitoEnabled(const std::string& extension_id,
40 content::BrowserContext* context);
41
38 content::StoragePartition* GetStoragePartitionForExtensionId( 42 content::StoragePartition* GetStoragePartitionForExtensionId(
39 const std::string& extension_id, 43 const std::string& extension_id,
40 content::BrowserContext* browser_context); 44 content::BrowserContext* browser_context);
41 45
42 } // namespace util 46 } // namespace util
43 } // namespace extensions 47 } // namespace extensions
44 48
45 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 49 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_actions_model.cc ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698