Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: components/offline_pages/background/offliner.h

Issue 2209813002: [Offline Pages] Moves Coordinator to using MarkAttemptStarted/MarkAttemptCompleted API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698