OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Returns the site of the |extension_id|, given the associated |context|. | 42 // Returns the site of the |extension_id|, given the associated |context|. |
43 // Suitable for use with BrowserContext::GetStoragePartitionForSite(). | 43 // Suitable for use with BrowserContext::GetStoragePartitionForSite(). |
44 GURL GetSiteForExtensionId(const std::string& extension_id, | 44 GURL GetSiteForExtensionId(const std::string& extension_id, |
45 content::BrowserContext* context); | 45 content::BrowserContext* context); |
46 | 46 |
47 content::StoragePartition* GetStoragePartitionForExtensionId( | 47 content::StoragePartition* GetStoragePartitionForExtensionId( |
48 const std::string& extension_id, | 48 const std::string& extension_id, |
49 content::BrowserContext* browser_context); | 49 content::BrowserContext* browser_context); |
50 | 50 |
| 51 // Returns true if the |extension| has an indexed ruleset on disk for the |
| 52 // declarativeNetRequest API. |
| 53 // TODO should this be in e/b/api/dnr? |
| 54 bool HasIndexedRuleset(const Extension* extension); |
| 55 |
51 } // namespace util | 56 } // namespace util |
52 } // namespace extensions | 57 } // namespace extensions |
53 | 58 |
54 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | 59 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ |
OLD | NEW |