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

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

Issue 6037013: net: Add namespace net to URLRequestFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 12 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 | 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 #include "chrome/browser/chromeos/login/registration_screen.h" 5 #include "chrome/browser/chromeos/login/registration_screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/child_process_security_policy.h" 10 #include "chrome/browser/child_process_security_policy.h"
(...skipping 25 matching lines...) Expand all
36 36
37 /////////////////////////////////////////////////////////////////////////////// 37 ///////////////////////////////////////////////////////////////////////////////
38 // RegistrationScreen, public: 38 // RegistrationScreen, public:
39 RegistrationScreen::RegistrationScreen(WizardScreenDelegate* delegate) 39 RegistrationScreen::RegistrationScreen(WizardScreenDelegate* delegate)
40 : ViewScreen<RegistrationView>(delegate) { 40 : ViewScreen<RegistrationView>(delegate) {
41 if (!host_page_url_.get()) 41 if (!host_page_url_.get())
42 set_registration_host_page_url(GURL(kRegistrationHostPageUrl)); 42 set_registration_host_page_url(GURL(kRegistrationHostPageUrl));
43 43
44 ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme( 44 ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme(
45 chrome::kCrosScheme); 45 chrome::kCrosScheme);
46 URLRequestFilter::GetInstance()->AddHostnameHandler( 46 net::URLRequestFilter::GetInstance()->AddHostnameHandler(
47 chrome::kCrosScheme, 47 chrome::kCrosScheme,
48 kRegistrationHostnameUrl, 48 kRegistrationHostnameUrl,
49 &RegistrationScreen::Factory); 49 &RegistrationScreen::Factory);
50 } 50 }
51 51
52 // static 52 // static
53 void RegistrationScreen::set_registration_host_page_url(const GURL& url) { 53 void RegistrationScreen::set_registration_host_page_url(const GURL& url) {
54 host_page_url_.reset(new GURL(url)); 54 host_page_url_.reset(new GURL(url));
55 } 55 }
56 56
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 // static 144 // static
145 net::URLRequestJob* RegistrationScreen::Factory(net::URLRequest* request, 145 net::URLRequestJob* RegistrationScreen::Factory(net::URLRequest* request,
146 const std::string& scheme) { 146 const std::string& scheme) {
147 VLOG(1) << "Handling url: " << request->url().spec().c_str(); 147 VLOG(1) << "Handling url: " << request->url().spec().c_str();
148 return new net::URLRequestAboutJob(request); 148 return new net::URLRequestAboutJob(request);
149 } 149 }
150 150
151 } // namespace chromeos 151 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698