OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GALLERY_WATCH_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | |
12 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
14 #include "base/files/file_path_watcher.h" | 13 #include "base/files/file_path_watcher.h" |
| 14 #include "base/macros.h" |
15 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 19 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
20 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" | 20 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" |
21 #include "components/storage_monitor/removable_storage_observer.h" | 21 #include "components/storage_monitor/removable_storage_observer.h" |
22 | 22 |
23 class GalleryWatchManagerObserver; | 23 class GalleryWatchManagerObserver; |
24 | 24 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Removes watches when a browser context is shut down as watches contain raw | 163 // Removes watches when a browser context is shut down as watches contain raw |
164 // pointers. | 164 // pointers. |
165 BrowserContextSubscriptionMap browser_context_subscription_map_; | 165 BrowserContextSubscriptionMap browser_context_subscription_map_; |
166 | 166 |
167 base::WeakPtrFactory<GalleryWatchManager> weak_factory_; | 167 base::WeakPtrFactory<GalleryWatchManager> weak_factory_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(GalleryWatchManager); | 169 DISALLOW_COPY_AND_ASSIGN(GalleryWatchManager); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_H_ | 172 #endif // CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_H_ |
OLD | NEW |