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

Side by Side Diff: components/history/core/browser/visitsegment_database.h

Issue 896093004: Cleanup usage of history namespace in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/history/core/browser/visit_tracker_unittest.cc ('k') | no next file » | 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) 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 COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/history/core/browser/history_types.h" 9 #include "components/history/core/browser/history_types.h"
10 10
11 class PageUsageData;
12
13 namespace sql { 11 namespace sql {
14 class Connection; 12 class Connection;
15 } 13 }
16 14
17 namespace history { 15 namespace history {
18 16
17 class PageUsageData;
18
19 // Tracks pages used for the most visited view. 19 // Tracks pages used for the most visited view.
20 class VisitSegmentDatabase { 20 class VisitSegmentDatabase {
21 public: 21 public:
22 // Must call InitSegmentTables before using any other part of this class. 22 // Must call InitSegmentTables before using any other part of this class.
23 VisitSegmentDatabase(); 23 VisitSegmentDatabase();
24 virtual ~VisitSegmentDatabase(); 24 virtual ~VisitSegmentDatabase();
25 25
26 // Compute a segment name given a URL. The segment name is currently the 26 // Compute a segment name given a URL. The segment name is currently the
27 // source url spec less some information such as query strings. 27 // source url spec less some information such as query strings.
28 static std::string ComputeSegmentName(const GURL& url); 28 static std::string ComputeSegmentName(const GURL& url);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // presentation table is removed entirely. 83 // presentation table is removed entirely.
84 bool MigratePresentationIndex(); 84 bool MigratePresentationIndex();
85 85
86 private: 86 private:
87 DISALLOW_COPY_AND_ASSIGN(VisitSegmentDatabase); 87 DISALLOW_COPY_AND_ASSIGN(VisitSegmentDatabase);
88 }; 88 };
89 89
90 } // namespace history 90 } // namespace history
91 91
92 #endif // COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_ 92 #endif // COMPONENTS_HISTORY_CORE_BROWSER_VISITSEGMENT_DATABASE_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/visit_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698