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

Side by Side Diff: net/http/http_auth_filter.cc

Issue 6362186595172352: net: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and revert nss_ocsp.cc changes Created 7 years, 5 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
« no previous file with comments | « net/http/http_auth_controller.h ('k') | net/http/http_auth_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/strings/string_util.h"
5 #include "net/http/http_auth_filter.h" 6 #include "net/http/http_auth_filter.h"
6 #include "base/strings/string_util.h" 7 #include "url/gurl.h"
7 #include "googleurl/src/gurl.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 // Using a std::set<> has the benefit of removing duplicates automatically. 11 // Using a std::set<> has the benefit of removing duplicates automatically.
12 typedef std::set<base::string16> RegistryWhitelist; 12 typedef std::set<base::string16> RegistryWhitelist;
13 13
14 // TODO(ahendrickson) -- Determine if we want separate whitelists for HTTP and 14 // TODO(ahendrickson) -- Determine if we want separate whitelists for HTTP and
15 // HTTPS, one for both, or only an HTTP one. My understanding is that the HTTPS 15 // HTTPS, one for both, or only an HTTP one. My understanding is that the HTTPS
16 // entries in the registry mean that you are only allowed to connect to the site 16 // entries in the registry mean that you are only allowed to connect to the site
17 // via HTTPS and still be considered 'safe'. 17 // via HTTPS and still be considered 'safe'.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return true; 49 return true;
50 return rules_.Matches(url); 50 return rules_.Matches(url);
51 } 51 }
52 52
53 void HttpAuthFilterWhitelist::SetWhitelist( 53 void HttpAuthFilterWhitelist::SetWhitelist(
54 const std::string& server_whitelist) { 54 const std::string& server_whitelist) {
55 rules_.ParseFromString(server_whitelist); 55 rules_.ParseFromString(server_whitelist);
56 } 56 }
57 57
58 } // namespace net 58 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_controller.h ('k') | net/http/http_auth_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698