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

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

Issue 2202113002: API to provide status of save page reqeusts to API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
(Empty)
1 // 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
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_BACKGROUND_REQUEST_STATUS_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_STATUS_H_
7
8 #include <string>
9
10 #include "components/offline_pages/background/save_page_request.h"
11
12 namespace offline_pages {
13
14 struct RequestStatus {
15 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
16 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
17 // 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
18
19 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
20 : client_id(id), status(request_status) {}
21
22 };
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
23
24 } // namespace offline_pages
25
fgorski 2016/08/02 04:18:12 nit: remove extra line.
Pete Williamson 2016/08/03 00:24:32 Done.
26
27 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698