| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |