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 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/time.h" | |
11 #include "chrome/browser/automation/automation_resource_tracker.h" | 10 #include "chrome/browser/automation/automation_resource_tracker.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 class NavigationController; | 13 class NavigationController; |
15 } | 14 } |
16 | 15 |
17 class AutomationTabTracker | 16 class AutomationTabTracker |
18 : public AutomationResourceTracker<content::NavigationController*> { | 17 : public AutomationResourceTracker<content::NavigationController*> { |
19 public: | 18 public: |
20 explicit AutomationTabTracker(IPC::Sender* automation); | 19 explicit AutomationTabTracker(IPC::Sender* automation); |
21 virtual ~AutomationTabTracker(); | 20 virtual ~AutomationTabTracker(); |
22 | 21 |
23 virtual void AddObserver(content::NavigationController* resource); | 22 virtual void AddObserver(content::NavigationController* resource); |
24 virtual void RemoveObserver(content::NavigationController* resource); | 23 virtual void RemoveObserver(content::NavigationController* resource); |
25 | 24 |
26 virtual void Observe(int type, | 25 virtual void Observe(int type, |
27 const content::NotificationSource& source, | 26 const content::NotificationSource& source, |
28 const content::NotificationDetails& details); | 27 const content::NotificationDetails& details); |
29 | 28 |
30 private: | 29 private: |
31 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); | 30 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); |
32 }; | 31 }; |
33 | 32 |
34 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ | 33 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ |
OLD | NEW |