| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/path_service.h" | 5 #include "base/path_service.h" |
| 6 | 6 |
| 7 #ifdef OS_WIN | 7 #ifdef OS_WIN |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #include <shlobj.h> | 10 #include <shlobj.h> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 15 #include "base/hash_tables.h" | 15 #include "base/hash_tables.h" |
| 16 #include "base/lock.h" | 16 #include "base/lock.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/singleton.h" | 18 #include "base/singleton.h" |
| 19 #include "base/string_util.h" | |
| 20 | 19 |
| 21 namespace base { | 20 namespace base { |
| 22 bool PathProvider(int key, FilePath* result); | 21 bool PathProvider(int key, FilePath* result); |
| 23 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
| 24 bool PathProviderWin(int key, FilePath* result); | 23 bool PathProviderWin(int key, FilePath* result); |
| 25 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
| 26 bool PathProviderMac(int key, FilePath* result); | 25 bool PathProviderMac(int key, FilePath* result); |
| 27 #elif defined(OS_POSIX) | 26 #elif defined(OS_POSIX) |
| 28 bool PathProviderPosix(int key, FilePath* result); | 27 bool PathProviderPosix(int key, FilePath* result); |
| 29 #endif | 28 #endif |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 p = new Provider; | 255 p = new Provider; |
| 257 p->is_static = false; | 256 p->is_static = false; |
| 258 p->func = func; | 257 p->func = func; |
| 259 p->next = path_data->providers; | 258 p->next = path_data->providers; |
| 260 #ifndef NDEBUG | 259 #ifndef NDEBUG |
| 261 p->key_start = key_start; | 260 p->key_start = key_start; |
| 262 p->key_end = key_end; | 261 p->key_end = key_end; |
| 263 #endif | 262 #endif |
| 264 path_data->providers = p; | 263 path_data->providers = p; |
| 265 } | 264 } |
| OLD | NEW |