Chromium Code Reviews| Index: components/offline_pages/core/prefetch/get_operation_request.h |
| diff --git a/components/offline_pages/core/prefetch/get_operation_request.h b/components/offline_pages/core/prefetch/get_operation_request.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..845c3849639cb7177224113aa3bfe85c3b67afa3 |
| --- /dev/null |
| +++ b/components/offline_pages/core/prefetch/get_operation_request.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_ |
| +#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/callback.h" |
| +#include "base/macros.h" |
| +#include "components/offline_pages/core/prefetch/prefetch_types.h" |
| + |
| +namespace net { |
| +class URLRequestContextGetter; |
| +} |
| + |
| +namespace offline_pages { |
| + |
| +class PrefetchRequestFetcher; |
| + |
| +class GetOperationRequest { |
|
dewittj
2017/05/16 18:30:20
class comment please
jianli
2017/05/16 22:44:40
Done.
|
| + public: |
| + 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.
|
| + net::URLRequestContextGetter* request_context_getter, |
| + const PrefetchRequestFinishedCallback& callback); |
| + ~GetOperationRequest(); |
| + |
| + private: |
| + void OnCompleted(PrefetchRequestStatus status, const std::string& data); |
| + |
| + PrefetchRequestFinishedCallback callback_; |
| + std::unique_ptr<PrefetchRequestFetcher> fetcher_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GetOperationRequest); |
| +}; |
| + |
| +} // namespace offline_pages |
| + |
| +#endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_GET_OPERATION_REQUEST_H_ |