OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/history/visit_log.h" | 5 #include "chrome/browser/history/visit_log.h" |
6 | 6 |
7 namespace history { | 7 namespace history { |
8 | 8 |
9 static VisitLog* g_visit_log = NULL; | 9 static VisitLog* g_visit_log = NULL; |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void InitVisitLog(VisitLog* vlog) { | 46 void InitVisitLog(VisitLog* vlog) { |
47 g_visit_log = vlog; | 47 g_visit_log = vlog; |
48 } | 48 } |
49 | 49 |
50 void AddEventToVisitLog(VisitLog::EventType event) { | 50 void AddEventToVisitLog(VisitLog::EventType event) { |
51 if (!g_visit_log) | 51 if (!g_visit_log) |
52 return; | 52 return; |
53 g_visit_log->AddEvent(event); | 53 g_visit_log->AddEvent(event); |
54 } | 54 } |
55 | 55 |
| 56 void ClearVisitLog() { |
| 57 g_visit_log = NULL; |
| 58 } |
| 59 |
| 60 |
56 } // namespace history | 61 } // namespace history |
OLD | NEW |