| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // for public sessions only. | 28 // for public sessions only. |
| 29 class TermsOfServiceScreen : public BaseScreen, | 29 class TermsOfServiceScreen : public BaseScreen, |
| 30 public TermsOfServiceScreenActor::Delegate, | 30 public TermsOfServiceScreenActor::Delegate, |
| 31 public net::URLFetcherDelegate { | 31 public net::URLFetcherDelegate { |
| 32 public: | 32 public: |
| 33 TermsOfServiceScreen(BaseScreenDelegate* base_screen_delegate, | 33 TermsOfServiceScreen(BaseScreenDelegate* base_screen_delegate, |
| 34 TermsOfServiceScreenActor* actor); | 34 TermsOfServiceScreenActor* actor); |
| 35 ~TermsOfServiceScreen() override; | 35 ~TermsOfServiceScreen() override; |
| 36 | 36 |
| 37 // BaseScreen: | 37 // BaseScreen: |
| 38 void PrepareToShow() override; | |
| 39 void Show() override; | 38 void Show() override; |
| 40 void Hide() override; | 39 void Hide() override; |
| 41 std::string GetName() const override; | 40 std::string GetName() const override; |
| 42 | 41 |
| 43 // TermsOfServiceScreenActor::Delegate: | 42 // TermsOfServiceScreenActor::Delegate: |
| 44 void OnDecline() override; | 43 void OnDecline() override; |
| 45 void OnAccept() override; | 44 void OnAccept() override; |
| 46 void OnActorDestroyed(TermsOfServiceScreenActor* actor) override; | 45 void OnActorDestroyed(TermsOfServiceScreenActor* actor) override; |
| 47 | 46 |
| 48 private: | 47 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 62 // Timer that enforces a custom (shorter) timeout on the attempt to download | 61 // Timer that enforces a custom (shorter) timeout on the attempt to download |
| 63 // the Terms of Service. | 62 // the Terms of Service. |
| 64 base::OneShotTimer download_timer_; | 63 base::OneShotTimer download_timer_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreen); | 65 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreen); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace chromeos | 68 } // namespace chromeos |
| 70 | 69 |
| 71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ | 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ |
| OLD | NEW |