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

Unified Diff: chrome/browser/local_discovery/cloud_device_list_delegate.h

Issue 284223004: List cloud devices in chrome://devices page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/local_discovery/cloud_device_list_delegate.h
diff --git a/chrome/browser/local_discovery/cloud_device_list_delegate.h b/chrome/browser/local_discovery/cloud_device_list_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..15db377964607714831a739c213b8a0a65bc5f88
--- /dev/null
+++ b/chrome/browser/local_discovery/cloud_device_list_delegate.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_DELEGATE_H_
+#define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_DELEGATE_H_
+
+#include <string>
+
+namespace local_discovery {
+
+class CloudDeviceListDelegate {
+ public:
+ static const char kDeviceTypePrinter[];
+
+ CloudDeviceListDelegate();
+ virtual ~CloudDeviceListDelegate();
+
+ struct Device {
+ Device();
+ ~Device();
+
+ std::string id;
+ std::string type;
+ std::string display_name;
+ std::string description;
+ };
+
+ virtual void OnDeviceListReady() = 0;
+ virtual void OnDeviceListUnavailable() = 0;
+};
+
+} // namespace local_discovery
+
+#endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_DELEGATE_H_
« no previous file with comments | « chrome/browser/local_discovery/cloud_device_list.cc ('k') | chrome/browser/local_discovery/cloud_device_list_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698