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

Side by Side Diff: components/content_settings/core/common/content_settings_pattern.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "components/content_settings/core/common/content_settings_pattern.h" 5 #include "components/content_settings/core/common/content_settings_pattern.h"
6 6
7 #include <stddef.h>
8
7 #include <vector> 9 #include <vector>
8 10
11 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
12 #include "components/content_settings/core/common/content_settings_pattern_parse r.h" 15 #include "components/content_settings/core/common/content_settings_pattern_parse r.h"
13 #include "net/base/net_util.h" 16 #include "net/base/net_util.h"
14 #include "net/base/url_util.h" 17 #include "net/base/url_util.h"
15 #include "url/gurl.h" 18 #include "url/gurl.h"
16 19
17 namespace { 20 namespace {
18 21
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 if (!parts.is_path_wildcard && other_parts.is_path_wildcard) 735 if (!parts.is_path_wildcard && other_parts.is_path_wildcard)
733 return ContentSettingsPattern::PREDECESSOR; 736 return ContentSettingsPattern::PREDECESSOR;
734 737
735 int result = parts.path.compare(other_parts.path); 738 int result = parts.path.compare(other_parts.path);
736 if (result == 0) 739 if (result == 0)
737 return ContentSettingsPattern::IDENTITY; 740 return ContentSettingsPattern::IDENTITY;
738 if (result > 0) 741 if (result > 0)
739 return ContentSettingsPattern::DISJOINT_ORDER_PRE; 742 return ContentSettingsPattern::DISJOINT_ORDER_PRE;
740 return ContentSettingsPattern::DISJOINT_ORDER_POST; 743 return ContentSettingsPattern::DISJOINT_ORDER_POST;
741 } 744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698