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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 class BrowserContext; 18 class BrowserContext;
19 } 19 }
20 20
21 namespace gfx { 21 namespace gfx {
22 class ImageSkia; 22 class ImageSkia;
23 } 23 }
24 24
25 class Profile; 25 class Profile;
26 26
27 namespace extensions { 27 namespace extensions {
28 28
29 class Extension; 29 class Extension;
30 struct ExtensionInfo;
31 class PermissionSet;
32 30
33 namespace util { 31 namespace util {
34 32
35 // Returns true if |extension_id| can run in an incognito window. 33 // Returns true if |extension_id| can run in an incognito window.
36 bool IsIncognitoEnabled(const std::string& extension_id, 34 bool IsIncognitoEnabled(const std::string& extension_id,
37 content::BrowserContext* context); 35 content::BrowserContext* context);
38 36
39 // Sets whether |extension_id| can run in an incognito window. Reloads the 37 // Sets whether |extension_id| can run in an incognito window. Reloads the
40 // extension if it's enabled since this permission is applied at loading time 38 // extension if it's enabled since this permission is applied at loading time
41 // only. Note that an ExtensionService must exist. 39 // only. Note that an ExtensionService must exist.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // open in window is stable on Mac. 117 // open in window is stable on Mac.
120 bool CanHostedAppsOpenInWindows(); 118 bool CanHostedAppsOpenInWindows();
121 119
122 // Returns true for custodian-installed extensions in a supervised profile. 120 // Returns true for custodian-installed extensions in a supervised profile.
123 bool IsExtensionSupervised(const Extension* extension, Profile* profile); 121 bool IsExtensionSupervised(const Extension* extension, Profile* profile);
124 122
125 } // namespace util 123 } // namespace util
126 } // namespace extensions 124 } // namespace extensions
127 125
128 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ 126 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_ui_util.h ('k') | chrome/browser/extensions/extension_web_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698