| 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 #ifndef BASE_PATH_SERVICE_H_ | 5 #ifndef BASE_PATH_SERVICE_H_ |
| 6 #define BASE_PATH_SERVICE_H_ | 6 #define BASE_PATH_SERVICE_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <string> | 8 #include <string> |
| 10 | 9 |
| 11 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 12 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
| 13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 14 | 13 |
| 15 class FilePath; | 14 class FilePath; |
| 16 | 15 |
| 17 // The path service is a global table mapping keys to file system paths. It is | 16 // The path service is a global table mapping keys to file system paths. It is |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static void RegisterProvider(ProviderFunc provider, | 61 static void RegisterProvider(ProviderFunc provider, |
| 63 int key_start, | 62 int key_start, |
| 64 int key_end); | 63 int key_end); |
| 65 private: | 64 private: |
| 66 static bool GetFromCache(int key, FilePath* path); | 65 static bool GetFromCache(int key, FilePath* path); |
| 67 static bool GetFromOverrides(int key, FilePath* path); | 66 static bool GetFromOverrides(int key, FilePath* path); |
| 68 static void AddToCache(int key, const FilePath& path); | 67 static void AddToCache(int key, const FilePath& path); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 #endif // BASE_PATH_SERVICE_H_ | 70 #endif // BASE_PATH_SERVICE_H_ |
| OLD | NEW |