Index: chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h |
diff --git a/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7e5919e45d8a990b686dfee976cf65ac922a551c |
--- /dev/null |
+++ b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2012 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_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVING_DEVICE_INFO_HANDLER_H_ |
+#define CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVING_DEVICE_INFO_HANDLER_H_ |
+ |
+#include <map> |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+ |
+namespace chrome_to_mobile_receive { |
+ |
+// Class that handles device information required to receive chrome-to-mobile |
+// jobs. |
+class ChromeToMobileReceivingDeviceInfoHandler { |
+ public: |
+ ChromeToMobileReceivingDeviceInfoHandler(); |
+ virtual ~ChromeToMobileReceivingDeviceInfoHandler(); |
+ |
+ // Returns if chrome-to-mobile job receiving is supported on this device. |
+ virtual bool IsSupported() const; |
+ |
+ // Starts fetching the device information required to receive chrome-to-mobile |
+ // jobs. |
+ virtual void Start(); |
+ |
+ // Returns if |printer_tags| contains the required information for |
+ // chrome-to-mobile job receiving. |
+ virtual bool HasRequiredInformation( |
+ std::map<std::string, std::string> printer_tags) const; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ChromeToMobileReceivingDeviceInfoHandler); |
+}; |
+ |
+} // namespace chrome_to_mobile_receive |
+ |
+#endif // CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVING_DEVICE_INFO_HANDLER_H_ |