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

Side by Side Diff: chrome/common/content_settings_pattern_parser.cc

Issue 15981010: Use a direct include of strings headers in chrome/common/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/common/content_settings_pattern_parser.h" 5 #include "chrome/common/content_settings_pattern_parser.h"
6 6
7 #include "base/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "extensions/common/constants.h" 9 #include "extensions/common/constants.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "googleurl/src/url_canon.h" 11 #include "googleurl/src/url_canon.h"
12 #include "net/base/net_util.h" 12 #include "net/base/net_util.h"
13 13
14 namespace { 14 namespace {
15 15
16 const char* kUrlPathSeparator = "/"; 16 const char* kUrlPathSeparator = "/";
17 const char* kUrlPortSeparator = ":"; 17 const char* kUrlPortSeparator = ":";
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 if (!parts.is_port_wildcard) { 225 if (!parts.is_port_wildcard) {
226 str += std::string(kUrlPortSeparator) + parts.port; 226 str += std::string(kUrlPortSeparator) + parts.port;
227 } 227 }
228 228
229 return str; 229 return str;
230 } 230 }
231 231
232 } // namespace content_settings 232 } // namespace content_settings
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern.cc ('k') | chrome/common/custom_handlers/protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698