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

Side by Side Diff: components/dom_distiller/core/dom_distiller_model.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_ 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/id_map.h" 15 #include "base/id_map.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "components/dom_distiller/core/article_entry.h" 17 #include "components/dom_distiller/core/article_entry.h"
18 #include "sync/api/sync_change.h" 18 #include "components/sync/api/sync_change.h"
19 #include "sync/api/sync_change_processor.h" // syncer::SyncChangeList 19 #include "components/sync/api/sync_change_processor.h" // syncer::SyncChangeLis t
20 #include "sync/api/sync_data.h" 20 #include "components/sync/api/sync_data.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace dom_distiller { 23 namespace dom_distiller {
24 24
25 // This stores the in-memory model of the DOM distiller list. Entries can be 25 // This stores the in-memory model of the DOM distiller list. Entries can be
26 // looked up by URL or by entry_id. 26 // looked up by URL or by entry_id.
27 // The model assumes that an URL corresponds to at most a single entry. If this 27 // The model assumes that an URL corresponds to at most a single entry. If this
28 // assumption is broken, lookup by URL may return unexpected results. 28 // assumption is broken, lookup by URL may return unexpected results.
29 class DomDistillerModel { 29 class DomDistillerModel {
30 public: 30 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 EntryMap entries_; 85 EntryMap entries_;
86 StringToKeyMap url_to_key_map_; 86 StringToKeyMap url_to_key_map_;
87 StringToKeyMap entry_id_to_key_map_; 87 StringToKeyMap entry_id_to_key_map_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(DomDistillerModel); 89 DISALLOW_COPY_AND_ASSIGN(DomDistillerModel);
90 }; 90 };
91 91
92 } // namespace dom_distiller 92 } // namespace dom_distiller
93 93
94 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_ 94 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_MODEL_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/article_entry_unittest.cc ('k') | components/dom_distiller/core/dom_distiller_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698