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

Side by Side Diff: extensions/common/features/feature.h

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « extensions/common/extension_api_stub.cc ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EXTENSIONS_COMMON_FEATURES_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_ 6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 // A context from a content script. 37 // A context from a content script.
38 CONTENT_SCRIPT_CONTEXT, 38 CONTENT_SCRIPT_CONTEXT,
39 39
40 // A normal web page. This should have an associated URL matching pattern. 40 // A normal web page. This should have an associated URL matching pattern.
41 WEB_PAGE_CONTEXT, 41 WEB_PAGE_CONTEXT,
42 42
43 // A web page context which has been blessed by the user. Typically this 43 // A web page context which has been blessed by the user. Typically this
44 // will be via the installation of a hosted app, so this may host an 44 // will be via the installation of a hosted app, so this may host an
45 // extension. This is not affected by the URL matching pattern. 45 // extension. This is not affected by the URL matching pattern.
46 BLESSED_WEB_PAGE_CONTEXT, 46 BLESSED_WEB_PAGE_CONTEXT,
47
48 // A page within webui.
49 WEBUI_CONTEXT,
47 }; 50 };
48 51
49 // The platforms the feature is supported in. 52 // The platforms the feature is supported in.
50 enum Platform { 53 enum Platform {
51 UNSPECIFIED_PLATFORM, 54 UNSPECIFIED_PLATFORM,
52 CHROMEOS_PLATFORM, 55 CHROMEOS_PLATFORM,
53 LINUX_PLATFORM, 56 LINUX_PLATFORM,
54 MACOSX_PLATFORM, 57 MACOSX_PLATFORM,
55 WIN_PLATFORM 58 WIN_PLATFORM
56 }; 59 };
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; 156 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0;
154 157
155 protected: 158 protected:
156 std::string name_; 159 std::string name_;
157 bool no_parent_; 160 bool no_parent_;
158 }; 161 };
159 162
160 } // namespace extensions 163 } // namespace extensions
161 164
162 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ 165 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_
OLDNEW
« no previous file with comments | « extensions/common/extension_api_stub.cc ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698