| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 // A globally unique rule identifier |
| 14 class RuleIdentifier { |
| 15 public: |
| 16 RuleIdentifier(const std::string& extension_id, |
| 17 const std::string& rule_id); |
| 18 RuleIdentifier(const RuleIdentifier& other); |
| 19 ~RuleIdentifier(); |
| 20 |
| 21 const std::string& extension_id() const { return extension_id_; } |
| 22 const std::string& rule_id() const { return rule_id_; } |
| 23 |
| 24 bool operator<(const RuleIdentifier& other) const; |
| 25 RuleIdentifier& operator=(const RuleIdentifier& other); |
| 26 private: |
| 27 std::string extension_id_; |
| 28 std::string rule_id_; |
| 29 }; |
| 30 |
| 31 } // extensions |
| 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__ |
| OLD | NEW |