OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_ITUNES_FINDER_MAC_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FINDER_MAC_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FINDER_MAC_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FINDER_MAC_H_ |
7 | 7 |
8 #include "chrome/browser/media_galleries/fileapi/itunes_finder.h" | 8 #include "chrome/browser/media_galleries/fileapi/itunes_finder.h" |
9 | 9 |
10 class MacPreferences; | |
11 | |
10 namespace itunes { | 12 namespace itunes { |
11 | 13 |
12 class ITunesFinderMac : public ITunesFinder { | 14 class ITunesFinderMac : public ITunesFinder { |
13 public: | 15 public: |
14 explicit ITunesFinderMac(const ITunesFinderCallback& callback); | 16 explicit ITunesFinderMac(const ITunesFinderCallback& callback); |
15 virtual ~ITunesFinderMac(); | 17 virtual ~ITunesFinderMac(); |
16 | 18 |
19 static void SetMacPreferencesForTesting(MacPreferences* preferences); | |
Lei Zhang
2013/08/13 20:02:34
make |preferences| a scoped_ptr, so it's obvious i
| |
20 | |
17 private: | 21 private: |
18 virtual void FindITunesLibraryOnFileThread() OVERRIDE; | 22 virtual void FindITunesLibraryOnFileThread() OVERRIDE; |
19 | 23 |
20 DISALLOW_COPY_AND_ASSIGN(ITunesFinderMac); | 24 DISALLOW_COPY_AND_ASSIGN(ITunesFinderMac); |
21 }; | 25 }; |
22 | 26 |
23 } // namespace itunes | 27 } // namespace itunes |
24 | 28 |
25 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FINDER_MAC_H_ | 29 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FINDER_MAC_H_ |
OLD | NEW |