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

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

Issue 9244005: Move the `privacy` extension API out of experimental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing permissions. Created 8 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kContentSettings, 49 kContentSettings,
50 kAllPageContent, 50 kAllPageContent,
51 kIme, 51 kIme,
52 kPrivacy,
52 kEnumBoundary 53 kEnumBoundary
53 }; 54 };
54 55
55 // Creates the corresponding permission message for a list of hosts. This is 56 // Creates the corresponding permission message for a list of hosts. This is
56 // simply a convenience method around the constructor, since the messages 57 // simply a convenience method around the constructor, since the messages
57 // change depending on what hosts are present. 58 // change depending on what hosts are present.
58 static ExtensionPermissionMessage CreateFromHostList( 59 static ExtensionPermissionMessage CreateFromHostList(
59 const std::set<std::string>& hosts); 60 const std::set<std::string>& hosts);
60 61
61 // Creates the corresponding permission message. 62 // Creates the corresponding permission message.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 kHistory, 113 kHistory,
113 kIdle, 114 kIdle,
114 kIme, 115 kIme,
115 kInputMethodPrivate, 116 kInputMethodPrivate,
116 kManagement, 117 kManagement,
117 kMediaPlayerPrivate, 118 kMediaPlayerPrivate,
118 kMetricsPrivate, 119 kMetricsPrivate,
119 kNotification, 120 kNotification,
120 kPageCapture, 121 kPageCapture,
121 kPlugin, 122 kPlugin,
123 kPrivacy,
122 kProxy, 124 kProxy,
123 kSocket, 125 kSocket,
124 kSystemPrivate, 126 kSystemPrivate,
125 kTab, 127 kTab,
126 kTerminalPrivate, 128 kTerminalPrivate,
127 kTts, 129 kTts,
128 kTtsEngine, 130 kTtsEngine,
129 kUnlimitedStorage, 131 kUnlimitedStorage,
130 kWebNavigation, 132 kWebNavigation,
131 kWebRequest, 133 kWebRequest,
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 475
474 // The list of hosts that can be scripted by content scripts. 476 // The list of hosts that can be scripted by content scripts.
475 // TODO(jstritar): Rename to "user_script_hosts_"? 477 // TODO(jstritar): Rename to "user_script_hosts_"?
476 URLPatternSet scriptable_hosts_; 478 URLPatternSet scriptable_hosts_;
477 479
478 // The list of hosts this effectively grants access to. 480 // The list of hosts this effectively grants access to.
479 URLPatternSet effective_hosts_; 481 URLPatternSet effective_hosts_;
480 }; 482 };
481 483
482 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 484 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698