| 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_MEDIA_SCAN_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "chrome/browser/media_galleries/media_scan_types.h" | 10 #include "chrome/browser/media_galleries/media_scan_types.h" |
| 12 | 11 |
| 13 class MediaScanManagerObserver { | 12 class MediaScanManagerObserver { |
| 14 public: | 13 public: |
| 15 virtual void OnScanStarted(const std::string& extension_id) {} | 14 virtual void OnScanStarted(const std::string& extension_id) {} |
| 16 virtual void OnScanCancelled(const std::string& extension_id) {} | 15 virtual void OnScanCancelled(const std::string& extension_id) {} |
| 17 virtual void OnScanFinished( | 16 virtual void OnScanFinished( |
| 18 const std::string& extension_id, | 17 const std::string& extension_id, |
| 19 int gallery_count, | 18 int gallery_count, |
| 20 const MediaGalleryScanResult& file_counts) {} | 19 const MediaGalleryScanResult& file_counts) {} |
| 21 virtual void OnScanError(const std::string& extension_id) {} | 20 virtual void OnScanError(const std::string& extension_id) {} |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_MANAGER_OBSERVER_H_ | 23 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_MANAGER_OBSERVER_H_ |
| OLD | NEW |