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

Unified Diff: chromeos/dbus/fake_bluetooth_media_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/fake_bluetooth_media_client.h
diff --git a/chromeos/dbus/fake_bluetooth_media_client.h b/chromeos/dbus/fake_bluetooth_media_client.h
deleted file mode 100644
index 3b4f4a7098d4996834b9dc0b3eb18d764ee14d33..0000000000000000000000000000000000000000
--- a/chromeos/dbus/fake_bluetooth_media_client.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
-#define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
-
-#include <map>
-
-#include "base/callback.h"
-#include "base/observer_list.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/dbus/bluetooth_media_client.h"
-#include "dbus/object_path.h"
-
-namespace chromeos {
-
-class FakeBluetoothMediaEndpointServiceProvider;
-
-class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient {
- public:
- // The default codec is SBC(0x00).
- static const uint8_t kDefaultCodec;
-
- FakeBluetoothMediaClient();
- ~FakeBluetoothMediaClient() override;
-
- // DBusClient override.
- void Init(dbus::Bus* bus) override;
-
- // BluetoothMediaClient overrides.
- void AddObserver(BluetoothMediaClient::Observer* observer) override;
- void RemoveObserver(BluetoothMediaClient::Observer* observer) override;
- void RegisterEndpoint(const dbus::ObjectPath& object_path,
- const dbus::ObjectPath& endpoint_path,
- const EndpointProperties& properties,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override;
- void UnregisterEndpoint(const dbus::ObjectPath& object_path,
- const dbus::ObjectPath& endpoint_path,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override;
-
- // Makes the media object visible/invisible to emulate the addition/removal
- // events.
- void SetVisible(bool visible);
-
- // Sets the registration state for a given media endpoint.
- void SetEndpointRegistered(
- FakeBluetoothMediaEndpointServiceProvider* endpoint,
- bool registered);
-
- // Indicates whether the given endpoint path is registered or not.
- bool IsRegistered(const dbus::ObjectPath& endpoint_path);
-
- private:
- // Indicates whether the media object is visible or not.
- bool visible_;
-
- // The path of the media object.
- dbus::ObjectPath object_path_;
-
- // Map of registered endpoints. Each pair is composed of an endpoint path as
- // key and a pointer to the endpoint as value.
- std::map<dbus::ObjectPath, FakeBluetoothMediaEndpointServiceProvider*>
- endpoints_;
-
- // List of observers interested in event notifications from us.
- base::ObserverList<BluetoothMediaClient::Observer> observers_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
« no previous file with comments | « chromeos/dbus/fake_bluetooth_le_advertising_manager_client.cc ('k') | chromeos/dbus/fake_bluetooth_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698