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

Unified Diff: device/usb/mojo/fake_permission_provider.h

Issue 1847183002: Use interface associations to check function permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit and fixed Windows build. Created 4 years, 9 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
« no previous file with comments | « device/usb/mojo/device_manager_impl_unittest.cc ('k') | device/usb/mojo/fake_permission_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mojo/fake_permission_provider.h
diff --git a/device/usb/mojo/fake_permission_provider.h b/device/usb/mojo/fake_permission_provider.h
deleted file mode 100644
index 8d0381325701ab88f904beeadef830a564d9eacf..0000000000000000000000000000000000000000
--- a/device/usb/mojo/fake_permission_provider.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 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 DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_
-#define DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_
-
-#include <stdint.h>
-
-#include "base/memory/weak_ptr.h"
-#include "device/usb/mojo/permission_provider.h"
-
-namespace device {
-namespace usb {
-
-class FakePermissionProvider : public PermissionProvider {
- public:
- FakePermissionProvider();
- ~FakePermissionProvider() override;
-
- base::WeakPtr<PermissionProvider> GetWeakPtr();
- bool HasDevicePermission(const DeviceInfo& device_info) const override;
- bool HasConfigurationPermission(uint8_t requested_configuration,
- const DeviceInfo& device_info) const override;
- bool HasInterfacePermission(uint8_t requested_interface,
- uint8_t configuration_value,
- const DeviceInfo& device_info) const override;
-
- private:
- base::WeakPtrFactory<PermissionProvider> weak_factory_;
-};
-
-} // namespace usb
-} // namespace device
-
-#endif // DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_
« no previous file with comments | « device/usb/mojo/device_manager_impl_unittest.cc ('k') | device/usb/mojo/fake_permission_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698