OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 explicit AutomationTabTracker(IPC::Message::Sender* automation); | 21 explicit AutomationTabTracker(IPC::Message::Sender* automation); |
22 virtual ~AutomationTabTracker(); | 22 virtual ~AutomationTabTracker(); |
23 | 23 |
24 virtual void AddObserver(content::NavigationController* resource); | 24 virtual void AddObserver(content::NavigationController* resource); |
25 virtual void RemoveObserver(content::NavigationController* resource); | 25 virtual void RemoveObserver(content::NavigationController* resource); |
26 | 26 |
27 virtual void Observe(int type, | 27 virtual void Observe(int type, |
28 const content::NotificationSource& source, | 28 const content::NotificationSource& source, |
29 const content::NotificationDetails& details); | 29 const content::NotificationDetails& details); |
30 | 30 |
31 base::Time GetLastNavigationTime(int handle); | |
32 | |
33 private: | 31 private: |
34 // Last time a navigation occurred. | |
35 std::map<content::NavigationController*, base::Time> last_navigation_times_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); | 32 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); |
38 }; | 33 }; |
39 | 34 |
40 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ | 35 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ |
OLD | NEW |