| 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 19 matching lines...) Expand all Loading... |
| 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 Show() override; | 38 void Show() override; |
| 39 void Hide() override; | 39 void Hide() override; |
| 40 std::string GetName() const override; | |
| 41 | 40 |
| 42 // TermsOfServiceScreenActor::Delegate: | 41 // TermsOfServiceScreenActor::Delegate: |
| 43 void OnDecline() override; | 42 void OnDecline() override; |
| 44 void OnAccept() override; | 43 void OnAccept() override; |
| 45 void OnActorDestroyed(TermsOfServiceScreenActor* actor) override; | 44 void OnActorDestroyed(TermsOfServiceScreenActor* actor) override; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 // Start downloading the Terms of Service. | 47 // Start downloading the Terms of Service. |
| 49 void StartDownload(); | 48 void StartDownload(); |
| 50 | 49 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 // Timer that enforces a custom (shorter) timeout on the attempt to download | 60 // Timer that enforces a custom (shorter) timeout on the attempt to download |
| 62 // the Terms of Service. | 61 // the Terms of Service. |
| 63 base::OneShotTimer download_timer_; | 62 base::OneShotTimer download_timer_; |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreen); | 64 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreen); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace chromeos | 67 } // namespace chromeos |
| 69 | 68 |
| 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_H_ |
| OLD | NEW |