Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |