| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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_CONTENT_SETTINGS_CONTENT_IDENTIFIER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_IDENTIFIER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "chrome/common/content_settings_types.h" |
| 12 |
| 13 namespace content_settings { |
| 14 |
| 15 typedef std::string ResourceIdentifier; |
| 16 |
| 17 class ContentIdentifier { |
| 18 public: |
| 19 ContentIdentifier( |
| 20 const ContentSettingsType& content_type, |
| 21 const ResourceIdentifier& resource_identifier); |
| 22 |
| 23 bool operator==(const ContentIdentifier& other) const { |
| 24 return (content_type_ == other.content_type_) && |
| 25 (resource_identifier_ == other.resource_identifier_); |
| 26 } |
| 27 |
| 28 private: |
| 29 const ContentSettingsType content_type_; |
| 30 const ResourceIdentifier resource_identifier_; |
| 31 }; |
| 32 |
| 33 } // namespace content_Settings |
| 34 |
| 35 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_IDENTIFIER_H_ |
| OLD | NEW |