OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "extensions/common/file_util.h" | 5 #include "extensions/common/file_util.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 430 } |
431 | 431 |
432 // Add @@extension_id reserved message here, so it's available to | 432 // Add @@extension_id reserved message here, so it's available to |
433 // non-localized extensions too. | 433 // non-localized extensions too. |
434 return_value->insert( | 434 return_value->insert( |
435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id)); | 435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id)); |
436 | 436 |
437 return return_value; | 437 return return_value; |
438 } | 438 } |
439 | 439 |
| 440 base::FilePath GetVerifiedContentsPath(const base::FilePath& extension_path) { |
| 441 return extension_path.Append(kMetadataFolder) |
| 442 .Append(kVerifiedContentsFilename); |
| 443 } |
| 444 base::FilePath GetComputedHashesPath(const base::FilePath& extension_path) { |
| 445 return extension_path.Append(kMetadataFolder).Append(kComputedHashesFilename); |
| 446 } |
| 447 |
440 } // namespace file_util | 448 } // namespace file_util |
441 } // namespace extensions | 449 } // namespace extensions |
OLD | NEW |