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

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

Issue 8776022: Move app notification getChannel API out of experimental (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another unit test fix 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // The ExtensionAPIPermission is an immutable class that describes a single 84 // The ExtensionAPIPermission is an immutable class that describes a single
85 // named permission (API permission). 85 // named permission (API permission).
86 class ExtensionAPIPermission { 86 class ExtensionAPIPermission {
87 public: 87 public:
88 enum ID { 88 enum ID {
89 // Error codes. 89 // Error codes.
90 kInvalid = -2, 90 kInvalid = -2,
91 kUnknown = -1, 91 kUnknown = -1,
92 92
93 // Real permissions. 93 // Real permissions.
94 kAppNotifications,
94 kBackground, 95 kBackground,
95 kBookmark, 96 kBookmark,
96 kChromeAuthPrivate, 97 kChromeAuthPrivate,
97 kChromePrivate, 98 kChromePrivate,
98 kChromeosInfoPrivate, 99 kChromeosInfoPrivate,
99 kClipboardRead, 100 kClipboardRead,
100 kClipboardWrite, 101 kClipboardWrite,
101 kContentSettings, 102 kContentSettings,
102 kContextMenus, 103 kContextMenus,
103 kCookie, 104 kCookie,
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 463
463 // The list of hosts that can be scripted by content scripts. 464 // The list of hosts that can be scripted by content scripts.
464 // TODO(jstritar): Rename to "user_script_hosts_"? 465 // TODO(jstritar): Rename to "user_script_hosts_"?
465 URLPatternSet scriptable_hosts_; 466 URLPatternSet scriptable_hosts_;
466 467
467 // The list of hosts this effectively grants access to. 468 // The list of hosts this effectively grants access to.
468 URLPatternSet effective_hosts_; 469 URLPatternSet effective_hosts_;
469 }; 470 };
470 471
471 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698