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 |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "chrome/browser/automation/automation_resource_tracker.h" | 12 #include "chrome/browser/automation/automation_resource_tracker.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class NavigationController; | 15 class NavigationController; |
16 } | 16 } |
17 | 17 |
18 class AutomationTabTracker | 18 class AutomationTabTracker |
19 : public AutomationResourceTracker<content::NavigationController*> { | 19 : public AutomationResourceTracker<content::NavigationController*> { |
20 public: | 20 public: |
21 explicit AutomationTabTracker(IPC::Message::Sender* automation); | 21 explicit AutomationTabTracker(IPC::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 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); | 32 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker); |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ | 35 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_ |
OLD | NEW |