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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 | 11 |
12 namespace picasa { | 12 namespace picasa { |
13 | 13 |
| 14 #if defined(OS_WIN) |
| 15 extern const wchar_t kPicasaRegistryPath[]; |
| 16 extern const wchar_t kPicasaRegistryAppDataKey[]; |
| 17 #endif |
| 18 |
14 typedef base::Callback<void(const std::string&)> DeviceIDCallback; | 19 typedef base::Callback<void(const std::string&)> DeviceIDCallback; |
15 | 20 |
16 // Bounces to FILE thread to find Picasa database. If the platform supports | 21 // Bounces to FILE thread to find Picasa database. If the platform supports |
17 // Picasa and a Picasa database is found, |callback| will be invoked on the | 22 // Picasa and a Picasa database is found, |callback| will be invoked on the |
18 // calling thread with the device ID. Otherwise, |callback| will be invoked | 23 // calling thread with the device ID. Otherwise, |callback| will be invoked |
19 // with an empty string. | 24 // with an empty string. |
20 void FindPicasaDatabase(const DeviceIDCallback& callback); | 25 void FindPicasaDatabase(const DeviceIDCallback& callback); |
21 | 26 |
22 } // namespace picasa | 27 } // namespace picasa |
23 | 28 |
24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ | 29 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ |
OLD | NEW |