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

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

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CONTENT_STORE_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_CONTENT_STORE_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_CONTENT_STORE_H_ 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_CONTENT_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/containers/mru_cache.h" 12 #include "base/containers/mru_cache.h"
13 #include "base/macros.h"
13 #include "components/dom_distiller/core/article_entry.h" 14 #include "components/dom_distiller/core/article_entry.h"
14 #include "components/dom_distiller/core/proto/distilled_article.pb.h" 15 #include "components/dom_distiller/core/proto/distilled_article.pb.h"
15 16
16 namespace dom_distiller { 17 namespace dom_distiller {
17 18
18 // The maximum number of items to keep in the cache before deleting some. 19 // The maximum number of items to keep in the cache before deleting some.
19 const int kDefaultMaxNumCachedEntries = 32; 20 const int kDefaultMaxNumCachedEntries = 32;
20 21
21 // This is a simple interface for saving and loading of distilled content for an 22 // This is a simple interface for saving and loading of distilled content for an
22 // ArticleEntry. 23 // ArticleEntry.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 InMemoryContentStore::CacheDeletor> ContentMap; 80 InMemoryContentStore::CacheDeletor> ContentMap;
80 typedef base::hash_map<std::string, std::string> UrlMap; 81 typedef base::hash_map<std::string, std::string> UrlMap;
81 82
82 ContentMap cache_; 83 ContentMap cache_;
83 UrlMap url_to_id_; 84 UrlMap url_to_id_;
84 }; 85 };
85 86
86 } // dom_distiller 87 } // dom_distiller
87 88
88 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_CONTENT_CACHE_H_ 89 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_CONTENT_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698