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

Side by Side Diff: chrome/browser/chromeos/login/screens/terms_of_service_screen.h

Issue 2549373005: cros: Refactor of BaseScreen::GetName to BaseScreen::screen_id. (Closed)
Patch Set: Nits 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/reset_model.cc ('k') | chrome/browser/chromeos/login/screens/terms_of_service_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698