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

Side by Side Diff: components/offline_pages/core/prefetch/get_operation_request.h

Issue 2889453003: [Offline Prefetech] Send GetOperationReqest to the server (Closed)
Patch Set: Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_
7
8 #include <vector>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "components/offline_pages/core/prefetch/prefetch_types.h"
13
14 namespace net {
15 class URLRequestContextGetter;
16 }
17
18 namespace offline_pages {
19
20 class PrefetchRequestFetcher;
21
22 class GetOperationRequest {
dewittj 2017/05/16 18:30:20 class comment please
jianli 2017/05/16 22:44:40 Done.
23 public:
24 GetOperationRequest(const std::string& name,
dewittj 2017/05/16 18:30:20 please document |name|, how you get one in particu
jianli 2017/05/16 22:44:40 Done.
25 net::URLRequestContextGetter* request_context_getter,
26 const PrefetchRequestFinishedCallback& callback);
27 ~GetOperationRequest();
28
29 private:
30 void OnCompleted(PrefetchRequestStatus status, const std::string& data);
31
32 PrefetchRequestFinishedCallback callback_;
33 std::unique_ptr<PrefetchRequestFetcher> fetcher_;
34
35 DISALLOW_COPY_AND_ASSIGN(GetOperationRequest);
36 };
37
38 } // namespace offline_pages
39
40 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698