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

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

Issue 8637019: Remove unused kDefault permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/extensions/extension_permission_set_unittest.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 (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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // The ExtensionAPIPermission is an immutable class that describes a single 82 // The ExtensionAPIPermission is an immutable class that describes a single
83 // named permission (API permission). 83 // named permission (API permission).
84 class ExtensionAPIPermission { 84 class ExtensionAPIPermission {
85 public: 85 public:
86 enum ID { 86 enum ID {
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.
92 kDefault,
93
94 // Real permissions. 91 // Real permissions.
95 kBackground, 92 kBackground,
96 kBookmark, 93 kBookmark,
97 kChromeAuthPrivate, 94 kChromeAuthPrivate,
98 kChromePrivate, 95 kChromePrivate,
99 kChromeosInfoPrivate, 96 kChromeosInfoPrivate,
100 kClipboardRead, 97 kClipboardRead,
101 kClipboardWrite, 98 kClipboardWrite,
102 kContentSettings, 99 kContentSettings,
103 kContextMenus, 100 kContextMenus,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 412
416 // The list of hosts that can be scripted by content scripts. 413 // The list of hosts that can be scripted by content scripts.
417 // TODO(jstritar): Rename to "user_script_hosts_"? 414 // TODO(jstritar): Rename to "user_script_hosts_"?
418 URLPatternSet scriptable_hosts_; 415 URLPatternSet scriptable_hosts_;
419 416
420 // The list of hosts this effectively grants access to. 417 // The list of hosts this effectively grants access to.
421 URLPatternSet effective_hosts_; 418 URLPatternSet effective_hosts_;
422 }; 419 };
423 420
424 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 421 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/extension_permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698