| OLD | NEW |
| 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 CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_client.h" | 13 #include "chromeos/dbus/dbus_client.h" |
| 14 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
| 15 | 14 |
| 16 namespace chromeos { | 15 namespace chromeos { |
| 17 | 16 |
| 18 // PermissionBrokerClient is used to communicate with the permission broker, a | 17 // PermissionBrokerClient is used to communicate with the permission broker, a |
| 19 // process that allows requesting permission to access specific device nodes. | 18 // process that allows requesting permission to access specific device nodes. |
| 20 // For example, one place that this client is used is within the USB extension | 19 // For example, one place that this client is used is within the USB extension |
| 21 // API code, where it is used to request explicit access to USB peripherals | 20 // API code, where it is used to request explicit access to USB peripherals |
| 22 // which the user the browser runs under normally wouldn't have access to. For | 21 // which the user the browser runs under normally wouldn't have access to. For |
| 23 // more details on the permission broker see: | 22 // more details on the permission broker see: |
| 24 // http://git.chromium.org/gitweb/?p=chromiumos/platform/permission_broker.git | 23 // http://git.chromium.org/gitweb/?p=chromiumos/platform/permission_broker.git |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 protected: | 57 protected: |
| 59 PermissionBrokerClient(); | 58 PermissionBrokerClient(); |
| 60 | 59 |
| 61 private: | 60 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(PermissionBrokerClient); | 61 DISALLOW_COPY_AND_ASSIGN(PermissionBrokerClient); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace chromeos | 64 } // namespace chromeos |
| 66 | 65 |
| 67 #endif // CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ | 66 #endif // CHROMEOS_DBUS_PERMISSION_BROKER_CLIENT_H_ |
| OLD | NEW |