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

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: License. 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 30 matching lines...) Expand all
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 kContentSettings, 49 kContentSettings,
50 kAllPageContent, 50 kAllPageContent,
51 kPrivacy,
51 kEnumBoundary 52 kEnumBoundary
52 }; 53 };
53 54
54 // Creates the corresponding permission message for a list of hosts. This is 55 // Creates the corresponding permission message for a list of hosts. This is
55 // simply a convenience method around the constructor, since the messages 56 // simply a convenience method around the constructor, since the messages
56 // change depending on what hosts are present. 57 // change depending on what hosts are present.
57 static ExtensionPermissionMessage CreateFromHostList( 58 static ExtensionPermissionMessage CreateFromHostList(
58 const std::set<std::string>& hosts); 59 const std::set<std::string>& hosts);
59 60
60 // Creates the corresponding permission message. 61 // Creates the corresponding permission message.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 kHistory, 112 kHistory,
112 kIdle, 113 kIdle,
113 kIme, 114 kIme,
114 kInputMethodPrivate, 115 kInputMethodPrivate,
115 kManagement, 116 kManagement,
116 kMediaPlayerPrivate, 117 kMediaPlayerPrivate,
117 kMetricsPrivate, 118 kMetricsPrivate,
118 kNotification, 119 kNotification,
119 kPageCapture, 120 kPageCapture,
120 kPlugin, 121 kPlugin,
122 kPrivacy,
121 kProxy, 123 kProxy,
122 kSocket, 124 kSocket,
123 kStorage, 125 kStorage,
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,
(...skipping 342 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
« no previous file with comments | « chrome/common/extensions/docs/static/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