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

Side by Side Diff: chrome/browser/chromeos/login/registration_screen.h

Issue 8480033: CrOs: Remove 29 exit time destructors and 8 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload 2 Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_REGISTRATION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // registration page specified in the startup customization manifest. 60 // registration page specified in the startup customization manifest.
61 // Partner registration page notifies host page on registration result. 61 // Partner registration page notifies host page on registration result.
62 // Host page notifies that back to RegistrationScreen. 62 // Host page notifies that back to RegistrationScreen.
63 class RegistrationScreen : public ViewScreen<RegistrationView>, 63 class RegistrationScreen : public ViewScreen<RegistrationView>,
64 public WebPageScreen, 64 public WebPageScreen,
65 public WebPageDelegate { 65 public WebPageDelegate {
66 public: 66 public:
67 explicit RegistrationScreen(ViewScreenDelegate* delegate); 67 explicit RegistrationScreen(ViewScreenDelegate* delegate);
68 68
69 // WebPageDelegate implementation: 69 // WebPageDelegate implementation:
70 virtual void OnPageLoaded(); 70 virtual void OnPageLoaded() OVERRIDE;
71 virtual void OnPageLoadFailed(const std::string& url); 71 virtual void OnPageLoadFailed(const std::string& url) OVERRIDE;
72
73 // Sets the url for registration host page. Used in tests.
74 static void set_registration_host_page_url(const GURL& url);
75 72
76 // Handler factory for net::URLRequestFilter::AddHostnameHandler. 73 // Handler factory for net::URLRequestFilter::AddHostnameHandler.
77 static net::URLRequestJob* Factory(net::URLRequest* request, 74 static net::URLRequestJob* Factory(net::URLRequest* request,
78 const std::string& scheme); 75 const std::string& scheme);
79 76
80 private: 77 private:
81 // ViewScreen implementation: 78 // ViewScreen implementation:
82 virtual void CreateView(); 79 virtual void CreateView();
83 virtual void Refresh(); 80 virtual void Refresh();
84 virtual RegistrationView* AllocateView(); 81 virtual RegistrationView* AllocateView();
85 82
86 // TabContentsDelegate implementation: 83 // TabContentsDelegate implementation:
87 // Deprecated. Please use two-argument variant. 84 // Deprecated. Please use two-argument variant.
88 // TODO(adriansc): Remove this method once refactoring changed all call sites. 85 // TODO(adriansc): Remove this method once refactoring changed all call sites.
89 virtual TabContents* OpenURLFromTab( 86 virtual TabContents* OpenURLFromTab(
90 TabContents* source, 87 TabContents* source,
91 const GURL& url, 88 const GURL& url,
92 const GURL& referrer, 89 const GURL& referrer,
93 WindowOpenDisposition disposition, 90 WindowOpenDisposition disposition,
94 content::PageTransition transition) OVERRIDE; 91 content::PageTransition transition) OVERRIDE;
95 virtual TabContents* OpenURLFromTab(TabContents* source, 92 virtual TabContents* OpenURLFromTab(TabContents* source,
96 const OpenURLParams& params) OVERRIDE; 93 const OpenURLParams& params) OVERRIDE;
97 94
98 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 95 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
99 96
100 // WebPageScreen implementation: 97 // WebPageScreen implementation:
101 virtual void CloseScreen(ScreenObserver::ExitCodes code); 98 virtual void CloseScreen(ScreenObserver::ExitCodes code);
102 99
103 // Url of account creation page. Overriden by tests.
104 static scoped_ptr<GURL> host_page_url_;
105
106 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); 100 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen);
107 }; 101 };
108 102
109 } // namespace chromeos 103 } // namespace chromeos
110 104
111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ 105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/power_manager_client.cc ('k') | chrome/browser/chromeos/login/registration_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698