| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUMBNAILS_THUMBNAIL_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_ |
| 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_ | 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_ |
| 7 | 7 |
| 8 #include "components/history/core/common/thumbnail_score.h" | 8 #include "components/history/core/common/thumbnail_score.h" |
| 9 #include "components/keyed_service/core/refcounted_keyed_service.h" | 9 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| 10 #include "ui/gfx/image/image.h" | 10 #include "ui/gfx/image/image.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 scoped_refptr<base::RefCountedMemory>* bytes) = 0; | 51 scoped_refptr<base::RefCountedMemory>* bytes) = 0; |
| 52 | 52 |
| 53 // Add or updates a |url| for which we should force the capture of a thumbnail | 53 // Add or updates a |url| for which we should force the capture of a thumbnail |
| 54 // next time it's visited. | 54 // next time it's visited. |
| 55 virtual void AddForcedURL(const GURL& url) = 0; | 55 virtual void AddForcedURL(const GURL& url) = 0; |
| 56 | 56 |
| 57 // Returns true if the page thumbnail should be updated. | 57 // Returns true if the page thumbnail should be updated. |
| 58 virtual bool ShouldAcquirePageThumbnail(const GURL& url) = 0; | 58 virtual bool ShouldAcquirePageThumbnail(const GURL& url) = 0; |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 virtual ~ThumbnailService() {} | 61 ~ThumbnailService() override {} |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace thumbnails | 64 } // namespace thumbnails |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_ | 66 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_H_ |
| OLD | NEW |