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

Side by Side Diff: components/offline_pages/core/client_id.h

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: More minor sorting. Created 3 years, 6 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
« no previous file with comments | « components/offline_pages/core/BUILD.gn ('k') | components/offline_pages/core/client_id.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
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_CORE_CLIENT_ID_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_CLIENT_ID_H_
7
8 #include <string>
9
10 namespace offline_pages {
11
12 // Defines a namespace/id pair that allows offline page clients to uniquely
13 // identify their own items within adopting internal systems. It is the client's
14 // responsibility to keep id values unique within its assigned namespace, but it
15 // is not a requirement.
16 struct ClientId {
17 ClientId();
18 ClientId(std::string name_space, std::string id);
fgorski 2017/06/02 17:33:31 Since you are moving stuff, these can be const&s.
carlosk 2017/06/02 17:51:26 Done.
19
20 bool operator==(const ClientId& client_id) const;
21
22 bool operator<(const ClientId& client_id) const;
23
24 // The namespace that identifies the client (of course 'namespace' is a
25 // reserved word, so...).
26 std::string name_space;
27
28 // The client specified id that allows it to uniquely identify entries within
29 // its namespace. These values are opaque to offline page systems and not used
30 // internally as an identifier.
31 std::string id;
32 };
33
34 } // namespace offline_pages
35
36 #endif // COMPONENTS_OFFLINE_PAGES_CORE_CLIENT_ID_H_
OLDNEW
« no previous file with comments | « components/offline_pages/core/BUILD.gn ('k') | components/offline_pages/core/client_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698