blob: a4b87bcaad52bb5d9fab1405ca73121818684c64 [file] [log] [blame]
[email protected]716c0162013-12-13 20:36:531// Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]5bcf3b72012-09-14 00:20:282// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]716c0162013-12-13 20:36:535#include "components/url_matcher/string_pattern.h"
[email protected]5bcf3b72012-09-14 00:20:286
jsbelldd1a3ea2015-11-20 19:07:397#include <tuple>
8
[email protected]716c0162013-12-13 20:36:539namespace url_matcher {
[email protected]5bcf3b72012-09-14 00:20:2810
11StringPattern::StringPattern(const std::string& pattern,
12 StringPattern::ID id)
13 : pattern_(pattern), id_(id) {}
14
15StringPattern::~StringPattern() {}
16
17bool StringPattern::operator<(const StringPattern& rhs) const {
jsbelldd1a3ea2015-11-20 19:07:3918 return std::tie(id_, pattern_) < std::tie(rhs.id_, rhs.pattern_);
[email protected]5bcf3b72012-09-14 00:20:2819}
20
[email protected]716c0162013-12-13 20:36:5321} // namespace url_matcher