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_BROWSER_TRACKER_H__ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ |
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/automation/automation_resource_tracker.h" | 9 #include "chrome/browser/automation/automation_resource_tracker.h" |
10 | 10 |
11 class Browser; | 11 class Browser; |
12 | 12 |
13 // Tracks Browser objects. | 13 // Tracks Browser objects. |
14 class AutomationBrowserTracker : public AutomationResourceTracker<Browser*> { | 14 class AutomationBrowserTracker : public AutomationResourceTracker<Browser*> { |
15 public: | 15 public: |
16 explicit AutomationBrowserTracker(IPC::Message::Sender* automation); | 16 explicit AutomationBrowserTracker(IPC::Sender* automation); |
17 virtual ~AutomationBrowserTracker(); | 17 virtual ~AutomationBrowserTracker(); |
18 virtual void AddObserver(Browser* resource); | 18 virtual void AddObserver(Browser* resource); |
19 virtual void RemoveObserver(Browser* resource); | 19 virtual void RemoveObserver(Browser* resource); |
20 }; | 20 }; |
21 | 21 |
22 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ | 22 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ |
OLD | NEW |