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

Unified Diff: components/offline_pages/core/prefetch/prefetch_item.h

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: Made construction params a cost&. Created 3 years, 7 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/core/prefetch/prefetch_item.h
diff --git a/components/offline_pages/core/prefetch/prefetch_item.h b/components/offline_pages/core/prefetch/prefetch_item.h
index e648ba9290ad819250867675332e69fb45a43f1c..b6b001a81e8d337f1faf593877e6b847de5df4b0 100644
--- a/components/offline_pages/core/prefetch/prefetch_item.h
+++ b/components/offline_pages/core/prefetch/prefetch_item.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/time/time.h"
+#include "components/offline_pages/core/client_id.h"
#include "components/offline_pages/core/prefetch/prefetch_types.h"
#include "url/gurl.h"
@@ -32,12 +33,9 @@ struct PrefetchItem {
// identifiers for operations linked to this item.
std::string guid;
- // Externally provided namespace and id values so that this item can be
- // uniquely identified by the client requesting it. It is the client's
- // responsibility to make sure the id is unique within the context of its
- // assigned namespace.
- std::string client_name_space;
- std::string client_id;
+ // Data composed of a namespace and an uid values to allow this item to be
+ // uniquely identified by the client that requested it.
+ ClientId client_id;
// Current prefetching progress state.
PrefetchItemState state = PrefetchItemState::NEW_REQUEST;

Powered by Google App Engine
This is Rietveld 408576698