OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_ | |
6 #define CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_ | |
7 | |
8 #include "base/callback.h" | |
9 | |
10 namespace base { | |
11 class FilePath; | |
12 } | |
13 | |
14 namespace content{ | |
15 struct MainFunctionParams; | |
16 } | |
17 | |
18 namespace chrome { | |
19 | |
20 typedef base::Callback<base::FilePath()> GetUserDataDirCallback; | |
21 | |
22 // Tests may install a custom GetUserDataDir() callback to override behavior. | |
23 void InstallCustomGetUserDataDirCallbackForTest( | |
24 GetUserDataDirCallback* callback); | |
25 | |
26 // Returns the user data dir. Must be called prior to InitializeLocalState(). | |
27 base::FilePath GetUserDataDir(const content::MainFunctionParams& parameters); | |
28 | |
29 } // namespace chrome | |
30 | |
31 #endif // CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_ | |
OLD | NEW |