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

Unified Diff: device/devices_app/devices_app.h

Issue 1682363002: Remove //device/devices_app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove two files that somehow survived in //device/devices_app. Created 4 years, 10 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/devices_app/OWNERS ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.h
diff --git a/device/devices_app/devices_app.h b/device/devices_app/devices_app.h
deleted file mode 100644
index 0fecb426b3685c00739edefbcd5d519127c78901..0000000000000000000000000000000000000000
--- a/device/devices_app/devices_app.h
+++ /dev/null
@@ -1,67 +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_DEVICES_DEVICES_APP_H_
-#define DEVICE_DEVICES_DEVICES_APP_H_
-
-#include <stddef.h>
-
-#include "base/cancelable_callback.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/shell/public/cpp/interface_factory.h"
-#include "mojo/shell/public/cpp/shell_client.h"
-
-namespace mojo {
-class Shell;
-}
-
-namespace device {
-
-namespace usb {
-class DeviceManager;
-}
-
-class DevicesApp : public mojo::ShellClient,
- public mojo::InterfaceFactory<usb::DeviceManager> {
- public:
- DevicesApp();
- ~DevicesApp() override;
-
- private:
- class USBServiceInitializer;
-
- // mojo::ShellClient:
- void Initialize(mojo::Shell* shell,
- const std::string& url,
- uint32_t id) override;
- bool AcceptConnection(mojo::Connection* connection) override;
- void Quit() override;
-
- // mojo::InterfaceFactory<usb::DeviceManager>:
- void Create(mojo::Connection* connection,
- mojo::InterfaceRequest<usb::DeviceManager> request) override;
-
- // Mojo error handler to track device manager count.
- void OnConnectionError();
-
- // Sets the app for destruction after a period of idle time. If any top-level
- // services (e.g. usb::DeviceManager) are bound before the timeout elapses,
- // it's canceled.
- void StartIdleTimer();
-
- mojo::Shell* shell_;
- scoped_ptr<USBServiceInitializer> service_initializer_;
- size_t active_device_manager_count_;
-
- // Callback used to shut down the app after a period of inactivity.
- base::CancelableClosure idle_timeout_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(DevicesApp);
-};
-
-} // naespace device
-
-#endif // DEVICE_DEVICES_DEVICES_APP_H_
« no previous file with comments | « device/devices_app/OWNERS ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698