Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: base/path_service.cc

Issue 3119022: Header cleanup in base.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698