Chromium Code Reviews| Index: components/offline_pages/background/request_status.h |
| diff --git a/components/offline_pages/background/request_status.h b/components/offline_pages/background/request_status.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0747a2116adf3453cf4ad63f21e8144c6db9b37 |
| --- /dev/null |
| +++ b/components/offline_pages/background/request_status.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
Pete Williamson
2016/08/03 00:24:32
Removing this whole file, we will use ClientIds in
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_STATUS_H_ |
| +#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_STATUS_H_ |
| + |
| +#include <string> |
| + |
| +#include "components/offline_pages/background/save_page_request.h" |
| + |
| +namespace offline_pages { |
| + |
| + struct RequestStatus { |
| + std::string client_id; |
|
fgorski
2016/08/02 04:18:12
why not a ClientId? you will get partial informati
Pete Williamson
2016/08/03 00:24:32
The idea was that the client already knows the nam
|
| + SavePageRequest::Status status; |
|
dougarnett
2016/08/02 20:39:28
Later, we may end up wanting to move this Status e
Pete Williamson
2016/08/03 00:24:32
File deleted
|
| + // TODO(petewil): We can easily add the URL, would it help? |
|
dougarnett
2016/08/02 20:39:28
Seems like a good thing to include although don't
Pete Williamson
2016/08/03 00:24:32
File deleted
|
| + |
| + RequestStatus(std::string id, SavePageRequest::Status request_status) |
|
fgorski
2016/08/02 04:18:12
const & for id.
Pete Williamson
2016/08/03 00:24:32
File deleted
|
| + : client_id(id), status(request_status) {} |
| + |
| + }; |
|
fgorski
2016/08/02 04:18:12
nit: git cl format, which will solve a few issues
Pete Williamson
2016/08/03 00:24:32
Done. Generally I'm not a fan of git cl format, w
|
| + |
| +} // namespace offline_pages |
| + |
|
fgorski
2016/08/02 04:18:12
nit: remove extra line.
Pete Williamson
2016/08/03 00:24:32
Done.
|
| + |
| +#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_STATUS_H_ |