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

Unified Diff: chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receive_job_observer.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_receive_job_observer.h
diff --git a/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receive_job_observer.h b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receive_job_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e421f24bf62d8a04a6ce2402f611da91869a947
--- /dev/null
+++ b/chrome/browser/chrome_to_mobile/receive/chrome_to_mobile_receive_job_observer.h
@@ -0,0 +1,47 @@
+// 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_RECEIVE_JOB_OBSERVER_H_
+#define CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVE_JOB_OBSERVER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+
+// Class that observes job fetching state.
+class ChromeToMobileReceiveJobObserver {
+ public:
+ ChromeToMobileReceiveJobObserver();
+
+ // Callback when the url of a snapshot has been fetched.
+ virtual void OnSnapshotUrlFetched(const std::string& snapshot_id,
+ const std::string& original_url,
+ const std::string& title,
+ const bool& is_offline_data_expected,
+ const std::string& create_time) = 0;
+
+ // Callback when the offline data of a snapshot has been fetched.
+ virtual void OnSnapshotDataDownloadComplete(const std::string& snapshot_id,
+ const bool& success,
+ const std::string& mime_type,
+ const std::string& data) = 0;
+
+ // Callback when the download of a print-to-phone job starts.
+ virtual void OnPrintToPhoneJobDownloadStart(const std::string& job_id,
+ const std::string& title) = 0;
+
+ // Callback when the download of a print-to-phone job completes.
+ virtual void OnPrintToPhoneJobDownloadComplete(
+ const std::string& job_id,
+ bool success,
+ const std::string& data_mime_type,
+ const std::string& data) = 0;
+
+ virtual ~ChromeToMobileReceiveJobObserver();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeToMobileReceiveJobObserver);
+};
+
+#endif // CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_CHROME_TO_MOBILE_RECEIVE_JOB_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698