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

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

Issue 351053003: Port HistoryService::QueryFilteredURLs to CancelableRequestTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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
OLDNEW
1 // Copyright (c) 2012 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_HISTORY_TYPES_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/containers/stack_container.h" 15 #include "base/containers/stack_container.h"
16 #include "base/memory/ref_counted_memory.h" 16 #include "base/memory/ref_counted_memory.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "chrome/common/ref_counted_util.h"
21 #include "components/favicon_base/favicon_types.h" 20 #include "components/favicon_base/favicon_types.h"
22 #include "components/history/core/browser/url_row.h" 21 #include "components/history/core/browser/url_row.h"
23 #include "components/history/core/common/thumbnail_score.h" 22 #include "components/history/core/common/thumbnail_score.h"
24 #include "content/public/common/page_transition_types.h" 23 #include "content/public/common/page_transition_types.h"
25 #include "ui/gfx/image/image.h" 24 #include "ui/gfx/image/image.h"
26 #include "ui/gfx/size.h" 25 #include "ui/gfx/size.h"
27 #include "url/gurl.h" 26 #include "url/gurl.h"
28 27
29 class PageUsageData; 28 class PageUsageData;
30 29
31 namespace content { 30 namespace content {
32 class WebContents; 31 class WebContents;
33 } 32 }
34 33
35 namespace history { 34 namespace history {
36 35
37 // Forward declaration for friend statements. 36 // Forward declaration for friend statements.
38 class HistoryBackend; 37 class HistoryBackend;
39 class URLDatabase; 38 class URLDatabase;
40 39
41 // Structure to hold redirect lists for URLs. For a redirect chain
42 // A -> B -> C, and entry in the map would look like "A => {B -> C}".
43 typedef std::map<GURL, scoped_refptr<RefCountedVector<GURL> > > RedirectMap;
44
45 // Container for a list of URLs. 40 // Container for a list of URLs.
46 typedef std::vector<GURL> RedirectList; 41 typedef std::vector<GURL> RedirectList;
47 42
48 typedef int64 FaviconBitmapID; // Identifier for a bitmap in a favicon. 43 typedef int64 FaviconBitmapID; // Identifier for a bitmap in a favicon.
49 typedef int64 SegmentID; // URL segments for the most visited view. 44 typedef int64 SegmentID; // URL segments for the most visited view.
50 typedef int64 IconMappingID; // For page url and icon mapping. 45 typedef int64 IconMappingID; // For page url and icon mapping.
51 46
52 // Identifier for a context to scope page ids. (ContextIDs are used in 47 // Identifier for a context to scope page ids. (ContextIDs are used in
53 // comparisons only and are never dereferenced.) 48 // comparisons only and are never dereferenced.)
54 // NB: The use of WebContents here is temporary; when the dependency on content 49 // NB: The use of WebContents here is temporary; when the dependency on content
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void SetTimeRangeForOneDay(base::Time time); 540 void SetTimeRangeForOneDay(base::Time time);
546 541
547 std::set<GURL> urls; 542 std::set<GURL> urls;
548 base::Time begin_time; 543 base::Time begin_time;
549 base::Time end_time; 544 base::Time end_time;
550 }; 545 };
551 546
552 } // namespace history 547 } // namespace history
553 548
554 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ 549 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698