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

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

Issue 5298008: net: Add namespace net to URLRequest and URLRequestJob classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some chromeos fixes Created 10 years 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) 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
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/chromeos/login/screen_observer.h" 12 #include "chrome/browser/chromeos/login/screen_observer.h"
13 #include "chrome/browser/chromeos/login/view_screen.h" 13 #include "chrome/browser/chromeos/login/view_screen.h"
14 #include "chrome/browser/chromeos/login/web_page_screen.h" 14 #include "chrome/browser/chromeos/login/web_page_screen.h"
15 #include "chrome/browser/chromeos/login/web_page_view.h" 15 #include "chrome/browser/chromeos/login/web_page_view.h"
16 16
17 namespace net {
18 class URLRequest;
19 class URLRequestJob;
20 } // namespace net
21
17 class GURL; 22 class GURL;
18 class Profile; 23 class Profile;
19 class SiteContents; 24 class SiteContents;
20 class URLRequest;
21 class URLRequestJob;
22 class WizardScreenDelegate; 25 class WizardScreenDelegate;
23 26
24 namespace chromeos { 27 namespace chromeos {
25 28
26 // Class that renders host registration page. 29 // Class that renders host registration page.
27 class RegistrationDomView : public WebPageDomView { 30 class RegistrationDomView : public WebPageDomView {
28 public: 31 public:
29 RegistrationDomView() {} 32 RegistrationDomView() {}
30 33
31 protected: 34 protected:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 explicit RegistrationScreen(WizardScreenDelegate* delegate); 70 explicit RegistrationScreen(WizardScreenDelegate* delegate);
68 71
69 // WebPageDelegate implementation: 72 // WebPageDelegate implementation:
70 virtual void OnPageLoaded(); 73 virtual void OnPageLoaded();
71 virtual void OnPageLoadFailed(const std::string& url); 74 virtual void OnPageLoadFailed(const std::string& url);
72 75
73 // Sets the url for registration host page. Used in tests. 76 // Sets the url for registration host page. Used in tests.
74 static void set_registration_host_page_url(const GURL& url); 77 static void set_registration_host_page_url(const GURL& url);
75 78
76 // Handler factory for URLRequestFilter::AddHostnameHandler. 79 // Handler factory for URLRequestFilter::AddHostnameHandler.
77 static URLRequestJob* Factory(URLRequest* request, 80 static net::URLRequestJob* Factory(net::URLRequest* request,
78 const std::string& scheme); 81 const std::string& scheme);
79 82
80 private: 83 private:
81 // ViewScreen implementation: 84 // ViewScreen implementation:
82 virtual void CreateView(); 85 virtual void CreateView();
83 virtual void Refresh(); 86 virtual void Refresh();
84 virtual RegistrationView* AllocateView(); 87 virtual RegistrationView* AllocateView();
85 88
86 // TabContentsDelegate implementation: 89 // TabContentsDelegate implementation:
87 virtual void LoadingStateChanged(TabContents* source) {} 90 virtual void LoadingStateChanged(TabContents* source) {}
88 virtual void NavigationStateChanged(const TabContents* source, 91 virtual void NavigationStateChanged(const TabContents* source,
(...skipping 10 matching lines...) Expand all
99 102
100 // Url of account creation page. Overriden by tests. 103 // Url of account creation page. Overriden by tests.
101 static scoped_ptr<GURL> host_page_url_; 104 static scoped_ptr<GURL> host_page_url_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen); 106 DISALLOW_COPY_AND_ASSIGN(RegistrationScreen);
104 }; 107 };
105 108
106 } // namespace chromeos 109 } // namespace chromeos
107 110
108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_ 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REGISTRATION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698