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

Unified Diff: chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h

Issue 2561023002: arc: ARC loading progress should not be shown when started from OOBE. (Closed)
Patch Set: rebased + comments updated Created 3 years, 11 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/login/screens/arc_terms_of_service_screen_actor_observer.h
diff --git a/chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h b/chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd1346eea25754d2be45fd453c3ec0b8f5181531
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_OBSERVER_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_OBSERVER_H_
+
+#include "base/macros.h"
+
+namespace chromeos {
+
+class ArcTermsOfServiceScreenActor;
+
+class ArcTermsOfServiceScreenActorObserver {
+ public:
+ virtual ~ArcTermsOfServiceScreenActorObserver() = default;
+
+ // Called when the user skips the PlayStore Terms of Service.
+ virtual void OnSkip() = 0;
+
+ // Called when the user accepts the PlayStore Terms of Service.
+ virtual void OnAccept() = 0;
+
+ // Called when actor is destroyed so there is no dead reference to it.
+ virtual void OnActorDestroyed(ArcTermsOfServiceScreenActor* actor) = 0;
+
+ protected:
+ ArcTermsOfServiceScreenActorObserver() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenActorObserver);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698