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

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

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/input_method/input_method_manager.h" 10 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
11 #include "chrome/browser/chromeos/input_method/input_method_util.h" 11 #include "chrome/browser/chromeos/input_method/input_method_util.h"
12 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "content/browser/child_process_security_policy.h"
15 #include "content/browser/renderer_host/render_view_host.h" 14 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/public/browser/child_process_security_policy.h"
16 #include "content/public/browser/site_instance.h" 16 #include "content/public/browser/site_instance.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "net/url_request/url_request_about_job.h" 19 #include "net/url_request/url_request_about_job.h"
20 #include "net/url_request/url_request_filter.h" 20 #include "net/url_request/url_request_filter.h"
21 21
22 using content::ChildProcessSecurityPolicy;
22 using content::OpenURLParams; 23 using content::OpenURLParams;
23 using content::SiteInstance; 24 using content::SiteInstance;
24 using content::WebContents; 25 using content::WebContents;
25 26
26 namespace chromeos { 27 namespace chromeos {
27 28
28 namespace { 29 namespace {
29 30
30 const char kRegistrationHostPageUrl[] = "chrome://register/"; 31 const char kRegistrationHostPageUrl[] = "chrome://register/";
31 32
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 124 }
124 125
125 // static 126 // static
126 net::URLRequestJob* RegistrationScreen::Factory(net::URLRequest* request, 127 net::URLRequestJob* RegistrationScreen::Factory(net::URLRequest* request,
127 const std::string& scheme) { 128 const std::string& scheme) {
128 VLOG(1) << "Handling url: " << request->url().spec().c_str(); 129 VLOG(1) << "Handling url: " << request->url().spec().c_str();
129 return new net::URLRequestAboutJob(request); 130 return new net::URLRequestAboutJob(request);
130 } 131 }
131 132
132 } // namespace chromeos 133 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/custom_handlers/protocol_handler_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698