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

Unified Diff: chrome/browser/chromeos/arc/extensions/fake_arc_support.h

Issue 2844383006: Turn ArcSupportHost from Observer model to Delegate (Closed)
Patch Set: rebase Created 3 years, 6 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/chromeos/arc/extensions/fake_arc_support.h
diff --git a/chrome/browser/chromeos/arc/extensions/fake_arc_support.h b/chrome/browser/chromeos/arc/extensions/fake_arc_support.h
index f34b0ee0e0afeadde93b88f2e519ce8f2043da8a..4789fcc9bf0eab32ff640c419b265de2d1748ca9 100644
--- a/chrome/browser/chromeos/arc/extensions/fake_arc_support.h
+++ b/chrome/browser/chromeos/arc/extensions/fake_arc_support.h
@@ -28,6 +28,10 @@ class FakeArcSupport : public extensions::NativeMessageHost::Client {
// Emulates clicking Close button.
void Close();
+ // Authentication page emulation.
+ void EmulateAuthCodeResponse(const std::string& auth_code);
+ void EmulateAuthFailure();
+
// Terms of service page emulation.
// Emulates clicking Agree button.
void ClickAgreeButton();
@@ -45,14 +49,18 @@ class FakeArcSupport : public extensions::NativeMessageHost::Client {
// Error page emulation.
void ClickRetryButton();
+ void ClickSendFeedbackButton();
// Returns the current page.
ArcSupportHost::UIPage ui_page() const { return ui_page_; }
private:
+ void UnsetMessageHost();
+
// extensions::NativeMessageHost::Client:
void PostMessageFromNativeHost(const std::string& message) override;
void CloseChannel(const std::string& error_message) override;
+ void OnMessage(const base::DictionaryValue& message);
ArcSupportHost* const support_host_;

Powered by Google App Engine
This is Rietveld 408576698