OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 58 matching lines...) Loading... |
69 public: | 69 public: |
70 explicit RegistrationScreen(WizardScreenDelegate* delegate); | 70 explicit RegistrationScreen(WizardScreenDelegate* delegate); |
71 | 71 |
72 // WebPageDelegate implementation: | 72 // WebPageDelegate implementation: |
73 virtual void OnPageLoaded(); | 73 virtual void OnPageLoaded(); |
74 virtual void OnPageLoadFailed(const std::string& url); | 74 virtual void OnPageLoadFailed(const std::string& url); |
75 | 75 |
76 // Sets the url for registration host page. Used in tests. | 76 // Sets the url for registration host page. Used in tests. |
77 static void set_registration_host_page_url(const GURL& url); | 77 static void set_registration_host_page_url(const GURL& url); |
78 | 78 |
79 // Handler factory for URLRequestFilter::AddHostnameHandler. | 79 // Handler factory for net::URLRequestFilter::AddHostnameHandler. |
80 static net::URLRequestJob* Factory(net::URLRequest* request, | 80 static net::URLRequestJob* Factory(net::URLRequest* request, |
81 const std::string& scheme); | 81 const std::string& scheme); |
82 | 82 |
83 private: | 83 private: |
84 // ViewScreen implementation: | 84 // ViewScreen implementation: |
85 virtual void CreateView(); | 85 virtual void CreateView(); |
86 virtual void Refresh(); | 86 virtual void Refresh(); |
87 virtual RegistrationView* AllocateView(); | 87 virtual RegistrationView* AllocateView(); |
88 | 88 |
89 // TabContentsDelegate implementation: | 89 // TabContentsDelegate implementation: |
(...skipping 12 matching lines...) Loading... |
102 | 102 |
103 // Url of account creation page. Overriden by tests. | 103 // Url of account creation page. Overriden by tests. |
104 static scoped_ptr<GURL> host_page_url_; | 104 static scoped_ptr<GURL> host_page_url_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); | 106 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace chromeos | 109 } // namespace chromeos |
110 | 110 |
111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ |
OLD | NEW |