[ServiceWorker] Implement WebServiceWorkerContextClient::openWindow().
[chromium-blink-merge.git] / chromeos / dbus / fake_bluetooth_media_client.h
blob496ff09f9c64d93b58440353e725b08537619f7f
1 // Copyright 2014 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.
5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
8 #include "base/callback.h"
9 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/bluetooth_media_client.h"
12 #include "dbus/object_path.h"
14 namespace chromeos {
16 class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient {
17 public:
18 // The default codec is SBC(0x00).
19 static const uint8_t kDefaultCodec;
21 FakeBluetoothMediaClient();
22 ~FakeBluetoothMediaClient() override;
24 // DBusClient override.
25 void Init(dbus::Bus* bus) override;
27 // BluetoothMediaClient overrides.
28 void AddObserver(BluetoothMediaClient::Observer* observer) override;
29 void RemoveObserver(BluetoothMediaClient::Observer* observer) override;
30 void RegisterEndpoint(const dbus::ObjectPath& object_path,
31 const dbus::ObjectPath& endpoint_path,
32 const EndpointProperties& properties,
33 const base::Closure& callback,
34 const ErrorCallback& error_callback) override;
35 void UnregisterEndpoint(const dbus::ObjectPath& object_path,
36 const dbus::ObjectPath& endpoint_path,
37 const base::Closure& callback,
38 const ErrorCallback& error_callback) override;
40 private:
41 // List of observers interested in event notifications from us.
42 ObserverList<BluetoothMediaClient::Observer> observers_;
44 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient);
47 } // namespace chromeos
49 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_