| 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 namespace PicasaFinder { | |
| 15 | |
| 16 typedef base::Callback<void(const std::string&)> DeviceIDCallback; | 14 typedef base::Callback<void(const std::string&)> DeviceIDCallback; |
| 17 | 15 |
| 18 // Bounces to FILE thread to find Picasa database. If the platform supports | 16 // Bounces to FILE thread to find Picasa database. If the platform supports |
| 19 // Picasa and a Picasa database is found, |callback| will be invoked on the | 17 // Picasa and a Picasa database is found, |callback| will be invoked on the |
| 20 // calling thread with the device ID. Otherwise, |callback| will be invoked | 18 // calling thread with the device ID. Otherwise, |callback| will be invoked |
| 21 // with an empty string. | 19 // with an empty string. |
| 22 void FindPicasaDatabase(const DeviceIDCallback& callback); | 20 void FindPicasaDatabase(const DeviceIDCallback& callback); |
| 23 | 21 |
| 24 } | |
| 25 | |
| 26 } // namespace picasa | 22 } // namespace picasa |
| 27 | 23 |
| 28 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ | 24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FINDER_H_ |
| OLD | NEW |