| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ |
| 7 | 7 |
| 8 namespace offline_pages { | 8 namespace offline_pages { |
| 9 | 9 |
| 10 class SavePageRequest; | 10 class SavePageRequest; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Notifies observers that |request| has been added. | 32 // Notifies observers that |request| has been added. |
| 33 virtual void NotifyAdded(const SavePageRequest& request) = 0; | 33 virtual void NotifyAdded(const SavePageRequest& request) = 0; |
| 34 | 34 |
| 35 // Notifies observers that |request| has been completed with |status|. | 35 // Notifies observers that |request| has been completed with |status|. |
| 36 virtual void NotifyCompleted(const SavePageRequest& request, | 36 virtual void NotifyCompleted(const SavePageRequest& request, |
| 37 BackgroundSavePageResult status) = 0; | 37 BackgroundSavePageResult status) = 0; |
| 38 | 38 |
| 39 // Notifies observers that |request| has been changed. | 39 // Notifies observers that |request| has been changed. |
| 40 virtual void NotifyChanged(const SavePageRequest& request) = 0; | 40 virtual void NotifyChanged(const SavePageRequest& request) = 0; |
| 41 |
| 42 // Notifies observers of progress on |request|, which received |
| 43 // |received_bytes| at that point. |
| 44 virtual void NotifyNetworkProgress(const SavePageRequest& request, |
| 45 int64_t received_bytes) = 0; |
| 41 }; | 46 }; |
| 42 | 47 |
| 43 } // namespace offline_pages | 48 } // namespace offline_pages |
| 44 | 49 |
| 45 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ | 50 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_NOTIFIER_H_ |
| OLD | NEW |