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

Unified Diff: chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h

Issue 11038063: Support chrome_to_mobile job receiving Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix format Created 8 years, 1 month 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_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_

Powered by Google App Engine
This is Rietveld 408576698