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

Unified Diff: chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler_ios.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_ios.h
diff --git a/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler_ios.h b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..2cf64f87afb9179cb8d1e416b86f47c3b5fc308b
--- /dev/null
+++ b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler_ios.h
@@ -0,0 +1,37 @@
+// 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_IOS_H_
+#define CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVING_DEVICE_INFO_HANDLER_IOS_H_
+
+#include "chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receiving_device_info_handler.h"
+
+#include "base/memory/scoped_ptr.h"
+
+namespace chrome_to_mobile_receive {
+
+// Implementation of |ChromeToMobileReceivingDeviceInfoHandler| for iOS devices.
+class ChromeToMobileReceivingDeviceInfoHandlerIOS
+ : public ChromeToMobileReceivingDeviceInfoHandler {
+ public:
+ ChromeToMobileReceivingDeviceInfoHandlerIOS();
+ virtual ~ChromeToMobileReceivingDeviceInfoHandlerIOS();
+
+ static bool IsChromeToMobileReceiveNotificationSupported();
+ static std::map<std::string, std::string> GeneratePrinterTags(
+ const std::string& device_token);
+
+ // |ChromeToMobileReceivingDeviceInfoHandler|
+ virtual bool IsSupported() const OVERRIDE;
+ virtual void Start() OVERRIDE;
+ virtual bool HasRequiredInformation(
+ std::map<std::string, std::string> printer_tags) const OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeToMobileReceivingDeviceInfoHandlerIOS);
+};
+
+} // namespace chrome_to_mobile_receive
+
+#endif // CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVING_DEVICE_INFO_HANDLER_IOS_H_

Powered by Google App Engine
This is Rietveld 408576698