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

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

Issue 7885006: Moving ContentSettingsPattern from chrome/browser/content_settings to chrome/common. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/content_settings/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/string_util.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.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 12
13 namespace { 13 namespace {
14 14
15 const char* kUrlPathSeparator = "/"; 15 const char* kUrlPathSeparator = "/";
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 218
219 if (!parts.is_port_wildcard) { 219 if (!parts.is_port_wildcard) {
220 str += std::string(kUrlPortSeparator) + parts.port; 220 str += std::string(kUrlPortSeparator) + parts.port;
221 } 221 }
222 222
223 return str; 223 return str;
224 } 224 }
225 225
226 } // namespace content_settings 226 } // namespace content_settings
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern_parser.h ('k') | chrome/common/content_settings_pattern_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698