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

Unified Diff: chrome/browser/chrome_webusb_browser_client.h

Issue 1289423002: Add webusb notification UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved webusb::WebUsbDetector::GetInstance() call to chrome_browser_main.cc Created 5 years, 4 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: chrome/browser/chrome_webusb_browser_client.h
diff --git a/chrome/browser/chrome_webusb_browser_client.h b/chrome/browser/chrome_webusb_browser_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d245095a5a9d02ffb59db5fa2b687add1b90367d
--- /dev/null
+++ b/chrome/browser/chrome_webusb_browser_client.h
@@ -0,0 +1,29 @@
+// 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 CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
+#define CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
+
+#include "components/webusb/webusb_browser_client.h"
+
+class GURL;
+
+// Implementation of webusb::WebUsbBrowserClient.
+// singletons appropriate for use within the Chrome application.
+class ChromeWebUsbBrowserClient : public webusb::WebUsbBrowserClient {
+ public:
+ ChromeWebUsbBrowserClient();
+ ~ChromeWebUsbBrowserClient() override;
+
+ // webusb::WebUsbBrowserClient implementation
+ void OpenURL(const GURL& url) override;
+
+ // webusb::WebUsbBrowserClient implementation
+ bool WebUsbNotificationEnabled() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient);
+};
+
+#endif // CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698