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

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

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 years, 3 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
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_PERMISSION_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Error codes. 87 // Error codes.
88 kInvalid = -2, 88 kInvalid = -2,
89 kUnknown = -1, 89 kUnknown = -1,
90 90
91 // Default permission that every extension has implicitly. 91 // Default permission that every extension has implicitly.
92 kDefault, 92 kDefault,
93 93
94 // Real permissions. 94 // Real permissions.
95 kBackground, 95 kBackground,
96 kBookmark, 96 kBookmark,
97 kChromeAuthPrivate,
98 kChromePrivate,
99 kChromeosInfoPrivate,
97 kClipboardRead, 100 kClipboardRead,
98 kClipboardWrite, 101 kClipboardWrite,
99 kContentSettings, 102 kContentSettings,
100 kContextMenus, 103 kContextMenus,
101 kCookie, 104 kCookie,
102 kChromeAuthPrivate,
103 kChromePrivate,
104 kChromeosInfoPrivate,
105 kDebugger, 105 kDebugger,
106 kDevtools,
106 kExperimental, 107 kExperimental,
107 kFileBrowserHandler, 108 kFileBrowserHandler,
108 kFileBrowserPrivate, 109 kFileBrowserPrivate,
109 kGeolocation, 110 kGeolocation,
110 kHistory, 111 kHistory,
111 kIdle, 112 kIdle,
112 kInputMethodPrivate, 113 kInputMethodPrivate,
113 kManagement, 114 kManagement,
114 kMediaPlayerPrivate, 115 kMediaPlayerPrivate,
115 kNotification, 116 kNotification,
117 kPermissions,
118 kPlugin,
116 kProxy, 119 kProxy,
117 kTab, 120 kTab,
118 kTts, 121 kTts,
119 kTtsEngine, 122 kTtsEngine,
120 kUnlimitedStorage, 123 kUnlimitedStorage,
121 kWebSocketProxyPrivate, 124 kWebSocketProxyPrivate,
122 kWebstorePrivate, 125 kWebstorePrivate,
123 kDevtools,
124 kPlugin,
125 kPermissions,
126 kEnumBoundary 126 kEnumBoundary
127 }; 127 };
128 128
129 enum Flag { 129 enum Flag {
130 kFlagNone = 0, 130 kFlagNone = 0,
131 131
132 // Indicates if the permission can be accessed by hosted apps. 132 // Indicates if the permission can be accessed by hosted apps.
133 kFlagHostedApp = 1 << 0, 133 kFlagHostedApp = 1 << 0,
134 134
135 // Indicates if the permission implies full access (native code). 135 // Indicates if the permission implies full access (native code).
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 // The list of hosts that can be scripted by content scripts. 414 // The list of hosts that can be scripted by content scripts.
415 // TODO(jstritar): Rename to "user_script_hosts_"? 415 // TODO(jstritar): Rename to "user_script_hosts_"?
416 URLPatternSet scriptable_hosts_; 416 URLPatternSet scriptable_hosts_;
417 417
418 // The list of hosts this effectively grants access to. 418 // The list of hosts this effectively grants access to.
419 URLPatternSet effective_hosts_; 419 URLPatternSet effective_hosts_;
420 }; 420 };
421 421
422 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 422 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/experimental.privacy.html ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698