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_IAPPS_DATA_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_DATA_PROVIDER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_DATA_PROVIDER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_DATA_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | |
13 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
15 #include "base/files/file_path_watcher.h" | 14 #include "base/files/file_path_watcher.h" |
| 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 | 17 |
18 namespace iapps { | 18 namespace iapps { |
19 | 19 |
20 // This class is the holder for iTunes parsed data. Given a path to the iTunes | 20 // This class is the holder for iTunes parsed data. Given a path to the iTunes |
21 // library XML file it will read it in, parse the data, and provide convenient | 21 // library XML file it will read it in, parse the data, and provide convenient |
22 // methods to access it. When the file changes, it will update the data. | 22 // methods to access it. When the file changes, it will update the data. |
23 // It is not thread safe, but can be run on any thread with IO access. | 23 // It is not thread safe, but can be run on any thread with IO access. |
24 class IAppsDataProvider { | 24 class IAppsDataProvider { |
25 public: | 25 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 scoped_ptr<base::FilePathWatcher> library_watcher_; | 68 scoped_ptr<base::FilePathWatcher> library_watcher_; |
69 | 69 |
70 base::WeakPtrFactory<IAppsDataProvider> weak_factory_; | 70 base::WeakPtrFactory<IAppsDataProvider> weak_factory_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(IAppsDataProvider); | 72 DISALLOW_COPY_AND_ASSIGN(IAppsDataProvider); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace iapps | 75 } // namespace iapps |
76 | 76 |
77 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_DATA_PROVIDER_H_ | 77 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IAPPS_DATA_PROVIDER_H_ |
OLD | NEW |