| Index: chrome/browser/extensions/api/declarative/rule_identifier.h
|
| diff --git a/chrome/browser/extensions/api/declarative/rule_identifier.h b/chrome/browser/extensions/api/declarative/rule_identifier.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9534293518568acc27cf35c62df90db9c3d285c4
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/declarative/rule_identifier.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__
|
| +#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__
|
| +#pragma once
|
| +
|
| +#include <string>
|
| +
|
| +namespace extensions {
|
| +
|
| +// A globally unique rule identifier
|
| +class RuleIdentifier {
|
| + public:
|
| + RuleIdentifier(const std::string& extension_id,
|
| + const std::string& rule_id);
|
| + RuleIdentifier(const RuleIdentifier& other);
|
| + ~RuleIdentifier();
|
| +
|
| + const std::string& extension_id() const { return extension_id_; }
|
| + const std::string& rule_id() const { return rule_id_; }
|
| +
|
| + bool operator<(const RuleIdentifier& other) const;
|
| + RuleIdentifier& operator=(const RuleIdentifier& other);
|
| + private:
|
| + std::string extension_id_;
|
| + std::string rule_id_;
|
| +};
|
| +
|
| +} // extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULE_IDENTIFIER_H__
|
|
|