| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VISIT_TRACKER_H__ | 5 #ifndef CHROME_BROWSER_HISTORY_VISIT_TRACKER_H__ |
| 6 #define CHROME_BROWSER_HISTORY_VISIT_TRACKER_H__ | 6 #define CHROME_BROWSER_HISTORY_VISIT_TRACKER_H__ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chrome/browser/history/history_types.h" | 12 #include "components/history/core/browser/history_types.h" |
| 13 | 13 |
| 14 namespace history { | 14 namespace history { |
| 15 | 15 |
| 16 // Tracks history transitions between pages. The history backend uses this to | 16 // Tracks history transitions between pages. The history backend uses this to |
| 17 // link up page transitions to form a chain of page visits, and to set the | 17 // link up page transitions to form a chain of page visits, and to set the |
| 18 // transition type properly. | 18 // transition type properly. |
| 19 // | 19 // |
| 20 // This class is not thread safe. | 20 // This class is not thread safe. |
| 21 class VisitTracker { | 21 class VisitTracker { |
| 22 public: | 22 public: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Maps render view hosts to lists of recent transitions. | 58 // Maps render view hosts to lists of recent transitions. |
| 59 ContextList contexts_; | 59 ContextList contexts_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(VisitTracker); | 61 DISALLOW_COPY_AND_ASSIGN(VisitTracker); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace history | 64 } // namespace history |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_HISTORY_VISIT_TRACKER_H__ | 66 #endif // CHROME_BROWSER_HISTORY_VISIT_TRACKER_H__ |
| OLD | NEW |