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

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

Issue 7551008: Strawman proposal for chrome.experimental.clear.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 years, 4 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 28 matching lines...) Expand all
39 kManagement, 39 kManagement,
40 kDebugger, 40 kDebugger,
41 kHosts1, 41 kHosts1,
42 kHosts2, 42 kHosts2,
43 kHosts3, 43 kHosts3,
44 kHosts4OrMore, 44 kHosts4OrMore,
45 kHostsAll, 45 kHostsAll,
46 kFullAccess, 46 kFullAccess,
47 kClipboard, 47 kClipboard,
48 kTtsEngine, 48 kTtsEngine,
49 kClear,
Mihai Parparita -not on Chrome 2011/08/23 23:24:13 We don't add new permissions (or messages) until a
Mike West 2011/08/24 09:10:33 Done.
49 kEnumBoundary 50 kEnumBoundary
50 }; 51 };
51 52
52 // Creates the corresponding permission message for a list of hosts. This is 53 // Creates the corresponding permission message for a list of hosts. This is
53 // simply a convenience method around the constructor, since the messages 54 // simply a convenience method around the constructor, since the messages
54 // change depending on what hosts are present. 55 // change depending on what hosts are present.
55 static ExtensionPermissionMessage CreateFromHostList( 56 static ExtensionPermissionMessage CreateFromHostList(
56 const std::set<std::string>& hosts); 57 const std::set<std::string>& hosts);
57 58
58 // Creates the corresponding permission message. 59 // Creates the corresponding permission message.
(...skipping 28 matching lines...) Expand all
87 // Error codes. 88 // Error codes.
88 kInvalid = -2, 89 kInvalid = -2,
89 kUnknown = -1, 90 kUnknown = -1,
90 91
91 // Default permission that every extension has implicitly. 92 // Default permission that every extension has implicitly.
92 kDefault, 93 kDefault,
93 94
94 // Real permissions. 95 // Real permissions.
95 kBackground, 96 kBackground,
96 kBookmark, 97 kBookmark,
98 kClear,
97 kClipboardRead, 99 kClipboardRead,
98 kClipboardWrite, 100 kClipboardWrite,
99 kContentSettings, 101 kContentSettings,
100 kContextMenus, 102 kContextMenus,
101 kCookie, 103 kCookie,
102 kChromeAuthPrivate, 104 kChromeAuthPrivate,
103 kChromePrivate, 105 kChromePrivate,
104 kChromeosInfoPrivate, 106 kChromeosInfoPrivate,
105 kDebugger, 107 kDebugger,
106 kExperimental, 108 kExperimental,
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 415
414 // The list of hosts that can be scripted by content scripts. 416 // The list of hosts that can be scripted by content scripts.
415 // TODO(jstritar): Rename to "user_script_hosts_"? 417 // TODO(jstritar): Rename to "user_script_hosts_"?
416 URLPatternSet scriptable_hosts_; 418 URLPatternSet scriptable_hosts_;
417 419
418 // The list of hosts this effectively grants access to. 420 // The list of hosts this effectively grants access to.
419 URLPatternSet effective_hosts_; 421 URLPatternSet effective_hosts_;
420 }; 422 };
421 423
422 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 424 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698