Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / media_galleries / fileapi / iapps_finder.h
bloba90219a52527b51fa805d1c130baaa39e59d9875
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_FINDER_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_FINDER_H_
8 #include <string>
10 #include "base/callback.h"
12 namespace iapps {
14 typedef base::Callback<void(const std::string&)> IAppsFinderCallback;
16 // These methods look for the iTunes/iPhoto library in in an asynchronous
17 // manner and call |callback| on the UI thread as soon as the result is known.
18 // If a library exists, |callback| gets the device id for the library. If a
19 // library does not exist, or the OS does not support iTunes/iPhoto, then
20 // |callback| gets an empty string.
22 void FindIPhotoLibrary(const IAppsFinderCallback& callback);
24 void FindITunesLibrary(const IAppsFinderCallback& callback);
26 } // namespace iapps
28 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_FINDER_H_