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_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_FINDER_IMPL_H_
10 #include "base/callback.h"
11 #include "chrome/browser/media_galleries/fileapi/iapps_finder.h"
12 #include "chrome/browser/storage_monitor/storage_info.h"
14 #if defined(OS_MACOSX)
27 #if defined(OS_MACOSX)
29 extern NSString* const kIPhotoRecentDatabasesKey;
30 extern NSString* const kITunesRecentDatabasePathsKey;
32 // Set the mac preferences to use for testing. The caller continues to own
33 // |preferences| and should call this function again with NULL before freeing
35 void SetMacPreferencesForTesting(MacPreferences* preferences);
39 typedef base::Callback<void(const IAppsFinderCallback&)> IAppsFinderTask;
41 // FindIAppsOnFileThread helps iApps finders by taking care of the details of
42 // bouncing to the FILE thread to run |task| and then turning the result into a
43 // device id and posting it to |callback| on the UI thread. If |task| does not
44 // find the iApps's library, |callback| gets an empty string.
45 void FindIAppsOnFileThread(StorageInfo::Type type, const IAppsFinderTask& task,
46 const IAppsFinderCallback& callback);
50 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_FINDER_IMPL_H_