| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "chrome/browser/automation/automation_resource_tracker.h" | 8 #include "chrome/browser/automation/automation_resource_tracker.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| 11 | 11 |
| 12 // Tracks Browser objects. | 12 // Tracks Browser objects. |
| 13 class AutomationBrowserTracker : public AutomationResourceTracker<Browser*> { | 13 class AutomationBrowserTracker : public AutomationResourceTracker<Browser*> { |
| 14 public: | 14 public: |
| 15 explicit AutomationBrowserTracker(IPC::Sender* automation); | 15 explicit AutomationBrowserTracker(IPC::Sender* automation); |
| 16 virtual ~AutomationBrowserTracker(); | 16 virtual ~AutomationBrowserTracker(); |
| 17 virtual void AddObserver(Browser* resource); | 17 virtual void AddObserver(Browser* resource); |
| 18 virtual void RemoveObserver(Browser* resource); | 18 virtual void RemoveObserver(Browser* resource); |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ | 21 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_BROWSER_TRACKER_H__ |
| OLD | NEW |