Add tests for navigation type classification for client-side redirects.
[chromium-blink-merge.git] / components / url_matcher / string_pattern.cc
blobd103bced3e255de4762f5d87a3d8b237c287f93b
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/url_matcher/string_pattern.h"
7 namespace url_matcher {
9 StringPattern::StringPattern(const std::string& pattern,
10 StringPattern::ID id)
11 : pattern_(pattern), id_(id) {}
13 StringPattern::~StringPattern() {}
15 bool StringPattern::operator<(const StringPattern& rhs) const {
16 if (id_ != rhs.id_) return id_ < rhs.id_;
17 return pattern_ < rhs.pattern_;
20 } // namespace url_matcher