OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_AUTH_ANDROID_H_ |
| 6 #define COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_AUTH_ANDROID_H_ |
| 7 |
| 8 #include <pwd.h> |
| 9 |
| 10 namespace devtools_remote_frontend { |
| 11 |
| 12 // Returns true if the given user/group pair is authorized to connect to the |
| 13 // devtools server, false if not. |
| 14 bool CanUserConnectToDevTools(uid_t uid, gid_t gid); |
| 15 |
| 16 } // namespace devtools_remote_frontend |
| 17 |
| 18 #endif // COMPONENTS_DEVTOOLS_REMOTE_FRONTEND_DEVTOOLS_AUTH_ANDROID_H_ |
OLD | NEW |