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

Side by Side Diff: components/webusb/webusb_browser_client.h

Issue 1326003006: Add webusb notification UI unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hardcoded expected string for testing 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 unified diff | Download patch
« no previous file with comments | « components/webusb/BUILD.gn ('k') | components/webusb/webusb_detector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_ 5 #ifndef COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
6 #define COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_ 6 #define COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h"
11 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
12 11
13 class GURL; 12 class GURL;
14 13
15 namespace webusb { 14 namespace webusb {
16 15
17 // Interface to allow the webusb module to make browser-process-specific 16 // Interface to allow the webusb module to make browser-process-specific
18 // calls. 17 // calls.
19 class WebUsbBrowserClient { 18 class WebUsbBrowserClient {
20 public: 19 public:
21 virtual ~WebUsbBrowserClient() {} 20 virtual ~WebUsbBrowserClient() {}
22 21
23 virtual void OnDeviceAdded(const base::string16& product_name, 22 virtual void OnDeviceAdded(const base::string16& product_name,
24 const GURL& landing_page, 23 const GURL& landing_page,
25 const std::string& notification_id) = 0; 24 const std::string& notification_id) = 0;
26 25
27 virtual void OnDeviceRemoved(const std::string& notification_id) = 0; 26 virtual void OnDeviceRemoved(const std::string& notification_id) = 0;
28 }; 27 };
29 28
30 } // namespace webusb 29 } // namespace webusb
31 30
32 #endif // COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_ 31 #endif // COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/webusb/BUILD.gn ('k') | components/webusb/webusb_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698