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

Side by Side Diff: chrome/browser/history/top_sites_cache.h

Issue 10272004: Move RefCountedMemory class to base namespace. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 11
(...skipping 17 matching lines...) Expand all
29 const URLToImagesMap& images() const { return images_; } 29 const URLToImagesMap& images() const { return images_; }
30 30
31 // Returns the thumbnail as an Image for the specified url. This adds an entry 31 // Returns the thumbnail as an Image for the specified url. This adds an entry
32 // for |url| if one has not yet been added. 32 // for |url| if one has not yet been added.
33 Images* GetImage(const GURL& url); 33 Images* GetImage(const GURL& url);
34 34
35 // Fetches the thumbnail for the specified url. Returns true if there is a 35 // Fetches the thumbnail for the specified url. Returns true if there is a
36 // thumbnail for the specified url. It is possible for a URL to be in TopSites 36 // thumbnail for the specified url. It is possible for a URL to be in TopSites
37 // but not have an thumbnail. 37 // but not have an thumbnail.
38 bool GetPageThumbnail(const GURL& url, 38 bool GetPageThumbnail(const GURL& url,
39 scoped_refptr<RefCountedMemory>* bytes); 39 scoped_refptr<base::RefCountedMemory>* bytes);
40 40
41 // Fetches the thumbnail score for the specified url. Returns true if 41 // Fetches the thumbnail score for the specified url. Returns true if
42 // there is a thumbnail score for the specified url. 42 // there is a thumbnail score for the specified url.
43 bool GetPageThumbnailScore(const GURL& url, ThumbnailScore* score); 43 bool GetPageThumbnailScore(const GURL& url, ThumbnailScore* score);
44 44
45 // Returns the canonical URL for |url|. 45 // Returns the canonical URL for |url|.
46 GURL GetCanonicalURL(const GURL& url); 46 GURL GetCanonicalURL(const GURL& url);
47 47
48 // Returns true if |url| is known. 48 // Returns true if |url| is known.
49 bool IsKnownURL(const GURL& url); 49 bool IsKnownURL(const GURL& url);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Generated from the redirects to and from the most visited pages. See 93 // Generated from the redirects to and from the most visited pages. See
94 // description above typedef for details. 94 // description above typedef for details.
95 CanonicalURLs canonical_urls_; 95 CanonicalURLs canonical_urls_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(TopSitesCache); 97 DISALLOW_COPY_AND_ASSIGN(TopSitesCache);
98 }; 98 };
99 99
100 } // namespace history 100 } // namespace history
101 101
102 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ 102 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698