OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 #include <string> |
| 6 #include <utility> |
| 7 |
| 8 #include "extensions/common/api/declarative_net_request/constants.h" |
| 9 |
| 10 #ifndef EXTENSIONS_COMMON_API_DECLARATIVE_NET_REQUEST_RULES_INDEXER_UTIL_H_ |
| 11 #define EXTENSIONS_COMMON_API_DECLARATIVE_NET_REQUEST_RULES_INDEXER_UTIL_H_ |
| 12 |
| 13 namespace base { |
| 14 class FilePath; |
| 15 } |
| 16 |
| 17 namespace extensions { |
| 18 namespace declarative_net_request { |
| 19 |
| 20 // This must be called on a thread where file IO is allowed. |
| 21 bool IndexAndPersistRuleset(const base::FilePath& json_rules_path, |
| 22 const base::FilePath& indexed_ruleset_path, |
| 23 std::string* error); |
| 24 |
| 25 } // namespace declarative_net_request |
| 26 } // namespace extensions |
| 27 |
| 28 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_NET_REQUEST_RULES_INDEXER_UTIL_H_ |
OLD | NEW |