Skip to content

Commit

Permalink
device: Cleanup class/struct forward declarations
Browse files Browse the repository at this point in the history
Remove useless class and struct forward declarations, and add
missing ones in device header files.

BUG=662195

Review-Url: https://codereview.chromium.org/2542903002
Cr-Commit-Position: refs/heads/master@{#435711}
  • Loading branch information
jbrianceau authored and Commit bot committed Dec 1, 2016
1 parent 6650924 commit 9f4dfb5
Show file tree
Hide file tree
Showing 34 changed files with 0 additions and 84 deletions.
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BluetoothRemoteGattDescriptor;
class BluetoothRemoteGattService;
class BluetoothSocket;
class BluetoothUUID;
struct BluetoothAdapterDeleter;
enum class UMABluetoothDiscoverySessionOutcome;

// BluetoothAdapter represents a local Bluetooth adapter which may be used to
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_adapter_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

namespace base {
class SequencedTaskRunner;
class Thread;
} // namespace base

namespace device {
Expand Down
4 changes: 0 additions & 4 deletions device/bluetooth/bluetooth_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
#include "device/bluetooth/bluetooth_export.h"
#include "device/bluetooth/bluetooth_uuid.h"

namespace base {
class BinaryValue;
}

namespace device {

class BluetoothAdapter;
Expand Down
3 changes: 0 additions & 3 deletions device/bluetooth/bluetooth_gatt_characteristic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

namespace device {

class BluetoothRemoteGattDescriptor;
class BluetoothGattNotifySession;

// BluetoothGattCharacteristic represents a local or remote GATT characteristic.
// A GATT characteristic is a basic data element used to construct a GATT
// service. Hence, instances of a BluetoothGattCharacteristic are associated
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_low_energy_device_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
namespace device {

class BluetoothAdapterMac;
class BluetoothLowEnergyDiscoverManagerMac;
class BluetoothRemoteGattServiceMac;

class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace device {

class BluetoothAdapterWin;
class BluetoothRemoteGattDescriptorWin;
class BluetoothRemoteGattServiceWin;
class BluetoothTaskManagerWin;
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_remote_gatt_descriptor_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

namespace device {

class BluetoothAdapterWin;
class BluetoothRemoteGattCharacteristicWin;
class BluetoothTaskManagerWin;

Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_remote_gatt_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace device {

class BluetoothDevice;
class BluetoothRemoteGattCharacteristic;
class BluetoothRemoteGattDescriptor;

// BluetoothRemoteGattService represents a remote GATT service.
//
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/bluetooth_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class IOBuffer;
namespace device {

class BluetoothDevice;
class BluetoothUUID;

// BluetoothSocket represents a socket to a specific service on a
// BluetoothDevice. BluetoothSocket objects are ref counted and may outlive
Expand Down
2 changes: 0 additions & 2 deletions device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace bluez {

class BluetoothGattCharacteristicBlueZ;

// The BluetoothGattDescriptorBlueZ class implements BluetoothGattDescriptor for
// GATT characteristic descriptors for platforms that use BlueZ.
class BluetoothGattDescriptorBlueZ
Expand Down
7 changes: 0 additions & 7 deletions device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
#include "device/bluetooth/bluez/bluetooth_gatt_service_bluez.h"
#include "device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.h"

namespace device {

class BluetoothAdapter;
class BluetoothDevice;

} // namespace device

namespace bluez {

class BluetoothAdapterBlueZ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

namespace device {

class BluetoothAdapter;
class BluetoothDevice;
class BluetoothRemoteGattCharacteristic;

Expand Down
4 changes: 0 additions & 4 deletions device/bluetooth/bluez/bluetooth_service_record_bluez.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
#include "device/bluetooth/bluetooth_export.h"
#include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h"

namespace base {
class Value;
}

namespace bluez {

class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ {
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/dbus/bluez_dbus_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

namespace dbus {
class Bus;
class ObjectPath;
class Response;
class ErrorResponse;
} // namespace dbus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

namespace bluez {

class BluetoothLocalGattCharacteristicBlueZ;
class BluetoothLocalGattDescriptorBlueZ;
class BluetoothLocalGattServiceBlueZ;

// FakeBluetoothGattApplicationServiceProvider simulates behavior of a local
Expand Down
2 changes: 0 additions & 2 deletions device/bluetooth/test/bluetooth_test_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace device {

class BluetoothAdapterAndroid;

// Android implementation of BluetoothTestBase.
class BluetoothTestAndroid : public BluetoothTestBase {
public:
Expand Down
1 change: 0 additions & 1 deletion device/bluetooth/test/bluetooth_test_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace device {
class BluetoothAdapterWin;
class BluetoothRemoteGattCharacteristicWin;

// Windows implementation of BluetoothTestBase.
class BluetoothTestWin : public BluetoothTestBase,
Expand Down
2 changes: 0 additions & 2 deletions device/gamepad/gamepad_test_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

namespace device {

class GamepadService;

// Data fetcher that returns canned data for the gamepad provider.
class MockGamepadDataFetcher : public GamepadDataFetcher {
public:
Expand Down
4 changes: 0 additions & 4 deletions device/generic_sensor/platform_sensor_ambient_light_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#include "base/mac/scoped_ioobject.h"
#include "device/generic_sensor/platform_sensor.h"

namespace base {
class SingleThreadTaskRunner;
}

namespace device {

// Implementation of PlatformSensor for macOS to query the ambient light sensor.
Expand Down
4 changes: 0 additions & 4 deletions device/generic_sensor/platform_sensor_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
#include "base/android/scoped_java_ref.h"
#include "base/memory/ref_counted.h"

namespace base {
class SingleThreadTaskRunner;
}

namespace device {

class PlatformSensorAndroid : public PlatformSensor {
Expand Down
2 changes: 0 additions & 2 deletions device/hid/hid_service_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

namespace device {

class HidConnection;

class HidServiceLinux : public HidService {
public:
HidServiceLinux(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
Expand Down
2 changes: 0 additions & 2 deletions device/hid/hid_service_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class SingleThreadTaskRunner;

namespace device {

class HidConnection;

class HidServiceMac : public HidService {
public:
HidServiceMac(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
Expand Down
6 changes: 0 additions & 6 deletions device/hid/hid_service_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ extern "C" {
#include "device/hid/hid_device_info.h"
#include "device/hid/hid_service.h"

namespace base {
namespace win {
class MessageWindow;
}
}

namespace device {

class HidServiceWin : public HidService, public DeviceMonitorWin::Observer {
Expand Down
1 change: 0 additions & 1 deletion device/udev_linux/udev_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
extern "C" {
struct udev;
struct udev_device;
struct udev_monitor;
}

namespace device {
Expand Down
4 changes: 0 additions & 4 deletions device/usb/mojo/device_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/interface_request.h"

namespace net {
class IOBuffer;
}

namespace device {
namespace usb {

Expand Down
6 changes: 0 additions & 6 deletions device/usb/mojo/device_manager_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/interface_request.h"

namespace base {
class SequencedTaskRunner;
}

namespace device {

class UsbDevice;
class UsbDeviceFilter;
class UsbDeviceHandle;

namespace usb {

Expand Down
1 change: 0 additions & 1 deletion device/usb/usb_device_handle_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ struct EndpointMapValue {
};

class UsbContext;
struct UsbConfigDescriptor;
class UsbDeviceImpl;

typedef libusb_device_handle* PlatformUsbDeviceHandle;
Expand Down
4 changes: 0 additions & 4 deletions device/usb/usb_device_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ namespace base {
class SequencedTaskRunner;
}

namespace dbus {
class FileDescriptor;
}

namespace device {

class UsbDeviceHandleImpl;
Expand Down
1 change: 0 additions & 1 deletion device/usb/usb_device_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class SequencedTaskRunner;

namespace device {

struct UsbConfigDescriptor;
struct UsbDeviceDescriptor;

class UsbDeviceLinux : public UsbDevice {
Expand Down
1 change: 0 additions & 1 deletion device/usb/usb_service_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ struct libusb_context;

namespace base {
class SequencedTaskRunner;
class SingleThreadTaskRunner;
}

namespace device {
Expand Down
1 change: 0 additions & 1 deletion device/usb/usb_service_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace base {
class SequencedTaskRunner;
class SingleThreadTaskRunner;
}

namespace device {
Expand Down
2 changes: 0 additions & 2 deletions device/vr/android/gvr/gvr_device_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

namespace device {

class GvrDelegateProvider;
class GvrDelegate;
class GvrDevice;
class VRServiceImpl;

class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider {
public:
Expand Down
8 changes: 0 additions & 8 deletions device/vr/vr_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
#include "device/vr/vr_export.h"
#include "device/vr/vr_service.mojom.h"

namespace blink {
struct WebHMDSensorState;
}

namespace ui {
class BaseWindow;
}

namespace device {

class VRDisplayImpl;
Expand Down
1 change: 0 additions & 1 deletion device/vr/vr_device_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace device {

class VRDevice;
class VRServiceImpl;

class VRDeviceProvider {
public:
Expand Down

0 comments on commit 9f4dfb5

Please sign in to comment.