| 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_BACKGROUND_OFFLINER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 | 11 |
| 10 namespace offline_pages { | 12 namespace offline_pages { |
| 11 | 13 |
| 12 class SavePageRequest; | 14 class SavePageRequest; |
| 13 | 15 |
| 14 // Interface of a class responsible for constructing an offline page given | 16 // Interface of a class responsible for constructing an offline page given |
| 15 // a request with a URL. | 17 // a request with a URL. |
| 16 class Offliner { | 18 class Offliner { |
| 17 public: | 19 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Clears the currently processing request, if any, and skips running its | 59 // Clears the currently processing request, if any, and skips running its |
| 58 // CompletionCallback. | 60 // CompletionCallback. |
| 59 virtual void Cancel() = 0; | 61 virtual void Cancel() = 0; |
| 60 | 62 |
| 61 // TODO(dougarnett): add policy support methods. | 63 // TODO(dougarnett): add policy support methods. |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 } // namespace offline_pages | 66 } // namespace offline_pages |
| 65 | 67 |
| 66 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_H_ | 68 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_H_ |
| OLD | NEW |