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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
7 7
8 #include <stdint.h>
9
8 #include "base/bind.h" 10 #include "base/bind.h"
9 #include "base/callback.h" 11 #include "base/callback.h"
10 #include "base/observer_list.h" 12 #include "base/observer_list.h"
11 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
12 #include "dbus/property.h" 14 #include "dbus/property.h"
13 #include "device/bluetooth/bluetooth_export.h" 15 #include "device/bluetooth/bluetooth_export.h"
14 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" 16 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
15 17
16 namespace bluez { 18 namespace bluez {
17 19
(...skipping 12 matching lines...) Expand all
30 // Each of these calls the equivalent BluetoothAgentServiceProvider::Delegate 32 // Each of these calls the equivalent BluetoothAgentServiceProvider::Delegate
31 // method on the object passed on construction. 33 // method on the object passed on construction.
32 virtual void Release(); 34 virtual void Release();
33 virtual void RequestPinCode(const dbus::ObjectPath& device_path, 35 virtual void RequestPinCode(const dbus::ObjectPath& device_path,
34 const Delegate::PinCodeCallback& callback); 36 const Delegate::PinCodeCallback& callback);
35 virtual void DisplayPinCode(const dbus::ObjectPath& device_path, 37 virtual void DisplayPinCode(const dbus::ObjectPath& device_path,
36 const std::string& pincode); 38 const std::string& pincode);
37 virtual void RequestPasskey(const dbus::ObjectPath& device_path, 39 virtual void RequestPasskey(const dbus::ObjectPath& device_path,
38 const Delegate::PasskeyCallback& callback); 40 const Delegate::PasskeyCallback& callback);
39 virtual void DisplayPasskey(const dbus::ObjectPath& device_path, 41 virtual void DisplayPasskey(const dbus::ObjectPath& device_path,
40 uint32 passkey, 42 uint32_t passkey,
41 int16 entered); 43 int16_t entered);
42 virtual void RequestConfirmation( 44 virtual void RequestConfirmation(
43 const dbus::ObjectPath& device_path, 45 const dbus::ObjectPath& device_path,
44 uint32 passkey, 46 uint32_t passkey,
45 const Delegate::ConfirmationCallback& callback); 47 const Delegate::ConfirmationCallback& callback);
46 virtual void RequestAuthorization( 48 virtual void RequestAuthorization(
47 const dbus::ObjectPath& device_path, 49 const dbus::ObjectPath& device_path,
48 const Delegate::ConfirmationCallback& callback); 50 const Delegate::ConfirmationCallback& callback);
49 virtual void AuthorizeService(const dbus::ObjectPath& device_path, 51 virtual void AuthorizeService(const dbus::ObjectPath& device_path,
50 const std::string& uuid, 52 const std::string& uuid,
51 const Delegate::ConfirmationCallback& callback); 53 const Delegate::ConfirmationCallback& callback);
52 virtual void Cancel(); 54 virtual void Cancel();
53 55
54 private: 56 private:
55 friend class FakeBluetoothAgentManagerClient; 57 friend class FakeBluetoothAgentManagerClient;
56 58
57 // D-Bus object path we are faking. 59 // D-Bus object path we are faking.
58 dbus::ObjectPath object_path_; 60 dbus::ObjectPath object_path_;
59 61
60 // All incoming method calls are passed on to the Delegate and a callback 62 // All incoming method calls are passed on to the Delegate and a callback
61 // passed to generate the reply. |delegate_| is generally the object that 63 // passed to generate the reply. |delegate_| is generally the object that
62 // owns this one, and must outlive it. 64 // owns this one, and must outlive it.
63 Delegate* delegate_; 65 Delegate* delegate_;
64 }; 66 };
65 67
66 } // namespace bluez 68 } // namespace bluez
67 69
68 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ 70 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/bluez_dbus_client.h ('k') | device/bluetooth/dbus/fake_bluetooth_agent_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698