| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Defines methods relevant to all code that wants to work with browsing data. | 5 // Defines methods relevant to all code that wants to work with browsing data. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ | 7 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ |
| 8 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ | 8 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace storage { | 14 namespace storage { |
| 15 class SpecialStoragePolicy; | 15 class SpecialStoragePolicy; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 | 19 |
| 20 class BrowsingDataHelper { | 20 class BrowsingDataHelper { |
| 21 public: | 21 public: |
| 22 enum OriginTypeMask { | 22 enum OriginTypeMask { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 // Returns true if the provided origin matches the provided mask. | 41 // Returns true if the provided origin matches the provided mask. |
| 42 static bool DoesOriginMatchMask(const GURL& origin, | 42 static bool DoesOriginMatchMask(const GURL& origin, |
| 43 int origin_type_mask, | 43 int origin_type_mask, |
| 44 storage::SpecialStoragePolicy* policy); | 44 storage::SpecialStoragePolicy* policy); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 DISALLOW_IMPLICIT_CONSTRUCTORS(BrowsingDataHelper); | 47 DISALLOW_IMPLICIT_CONSTRUCTORS(BrowsingDataHelper); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ | 50 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_HELPER_H_ |
| OLD | NEW |