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

Side by Side Diff: content/public/browser/child_process_security_policy.h

Issue 755673002: Update MidiDispatcher to use Mojo Permission Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const std::string& filesystem_id) = 0; 143 const std::string& filesystem_id) = 0;
144 144
145 // Returns true if delete-from access has been granted to |filesystem_id|. 145 // Returns true if delete-from access has been granted to |filesystem_id|.
146 virtual bool CanDeleteFromFileSystem(int child_id, 146 virtual bool CanDeleteFromFileSystem(int child_id,
147 const std::string& filesystem_id) = 0; 147 const std::string& filesystem_id) = 0;
148 148
149 // Returns true if the specified child_id has been granted WebUI bindings. 149 // Returns true if the specified child_id has been granted WebUI bindings.
150 // The browser should check this property before assuming the child process 150 // The browser should check this property before assuming the child process
151 // is allowed to use WebUI bindings. 151 // is allowed to use WebUI bindings.
152 virtual bool HasWebUIBindings(int child_id) = 0; 152 virtual bool HasWebUIBindings(int child_id) = 0;
153
154 // Grants permission to send system exclusive message to any MIDI devices.
155 virtual void GrantSendMidiSysExMessage(int child_id) = 0;
Tom Sepez 2014/11/24 18:10:02 I'd expected to see a corresponding CanSendMidi...
mlamouri (slow - plz ping) 2014/11/24 18:20:17 It's in the _impl.h It seems that ChildProcessSecu
Tom Sepez 2014/11/24 18:27:09 Ah, OK. Its OK where it is, I was just surprised
153 }; 156 };
154 157
155 } // namespace content 158 } // namespace content
156 159
157 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 160 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698