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

Side by Side Diff: content/browser/child_process_security_policy_impl.h

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 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 CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
7 7
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Grant the child process the ability to use Web UI Bindings. 117 // Grant the child process the ability to use Web UI Bindings.
118 void GrantWebUIBindings(int child_id); 118 void GrantWebUIBindings(int child_id);
119 119
120 // Grant the child process the ability to read raw cookies. 120 // Grant the child process the ability to read raw cookies.
121 void GrantReadRawCookies(int child_id); 121 void GrantReadRawCookies(int child_id);
122 122
123 // Revoke read raw cookies permission. 123 // Revoke read raw cookies permission.
124 void RevokeReadRawCookies(int child_id); 124 void RevokeReadRawCookies(int child_id);
125 125
126 // Grants permission to send system exclusive message to any MIDI devices. 126 // Grants permission to send system exclusive message to any MIDI devices.
127 void GrantSendMIDISysExMessage(int child_id); 127 void GrantSendMidiSysExMessage(int child_id);
128 128
129 // Before servicing a child process's request for a URL, the browser should 129 // Before servicing a child process's request for a URL, the browser should
130 // call this method to determine whether the process has the capability to 130 // call this method to determine whether the process has the capability to
131 // request the URL. 131 // request the URL.
132 bool CanRequestURL(int child_id, const GURL& url); 132 bool CanRequestURL(int child_id, const GURL& url);
133 133
134 // Returns true if the process is permitted to load pages from 134 // Returns true if the process is permitted to load pages from
135 // the given origin in main frames or subframes. 135 // the given origin in main frames or subframes.
136 // Only might return false if --site-per-process flag is used. 136 // Only might return false if --site-per-process flag is used.
137 bool CanLoadPage(int child_id, 137 bool CanLoadPage(int child_id,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void LockToOrigin(int child_id, const GURL& gurl); 177 void LockToOrigin(int child_id, const GURL& gurl);
178 178
179 // Register FileSystem type and permission policy which should be used 179 // Register FileSystem type and permission policy which should be used
180 // for the type. The |policy| must be a bitwise-or'd value of 180 // for the type. The |policy| must be a bitwise-or'd value of
181 // fileapi::FilePermissionPolicy. 181 // fileapi::FilePermissionPolicy.
182 void RegisterFileSystemPermissionPolicy( 182 void RegisterFileSystemPermissionPolicy(
183 fileapi::FileSystemType type, 183 fileapi::FileSystemType type,
184 int policy); 184 int policy);
185 185
186 // Returns true if sending system exclusive messages is allowed. 186 // Returns true if sending system exclusive messages is allowed.
187 bool CanSendMIDISysExMessage(int child_id); 187 bool CanSendMidiSysExMessage(int child_id);
188 188
189 private: 189 private:
190 friend class ChildProcessSecurityPolicyInProcessBrowserTest; 190 friend class ChildProcessSecurityPolicyInProcessBrowserTest;
191 friend class ChildProcessSecurityPolicyTest; 191 friend class ChildProcessSecurityPolicyTest;
192 FRIEND_TEST_ALL_PREFIXES(ChildProcessSecurityPolicyInProcessBrowserTest, 192 FRIEND_TEST_ALL_PREFIXES(ChildProcessSecurityPolicyInProcessBrowserTest,
193 NoLeak); 193 NoLeak);
194 FRIEND_TEST_ALL_PREFIXES(ChildProcessSecurityPolicyTest, FilePermissions); 194 FRIEND_TEST_ALL_PREFIXES(ChildProcessSecurityPolicyTest, FilePermissions);
195 195
196 class SecurityState; 196 class SecurityState;
197 197
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 WorkerToMainProcessMap worker_map_; 272 WorkerToMainProcessMap worker_map_;
273 273
274 FileSystemPermissionPolicyMap file_system_policy_map_; 274 FileSystemPermissionPolicyMap file_system_policy_map_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 276 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
277 }; 277 };
278 278
279 } // namespace content 279 } // namespace content
280 280
281 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 281 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698