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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698