| 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_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 8 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 10 | 9 |
| 11 class GalleryWatchManagerObserver { | 10 class GalleryWatchManagerObserver { |
| 12 public: | 11 public: |
| 13 virtual ~GalleryWatchManagerObserver() {} | 12 virtual ~GalleryWatchManagerObserver() {} |
| 14 | 13 |
| 15 // Called when the gallery contents change. | 14 // Called when the gallery contents change. |
| 16 virtual void OnGalleryChanged(const std::string& extension_id, | 15 virtual void OnGalleryChanged(const std::string& extension_id, |
| 17 MediaGalleryPrefId gallery_id) = 0; | 16 MediaGalleryPrefId gallery_id) = 0; |
| 18 | 17 |
| 19 // Called when the gallery watch is dropped without the caller requesting it, | 18 // Called when the gallery watch is dropped without the caller requesting it, |
| 20 // because the permission was revoked, device was detached, etc. | 19 // because the permission was revoked, device was detached, etc. |
| 21 virtual void OnGalleryWatchDropped(const std::string& extension_id, | 20 virtual void OnGalleryWatchDropped(const std::string& extension_id, |
| 22 MediaGalleryPrefId gallery_id) = 0; | 21 MediaGalleryPrefId gallery_id) = 0; |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 #endif // CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_OBSERVER_H_ | 24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_GALLERY_WATCH_MANAGER_OBSERVER_H_ |
| OLD | NEW |