Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: chrome/browser/automation/automation_extension_tracker.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_EXTENSION_TRACKER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_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
(...skipping 14 matching lines...) Expand all
25 // extensions in the constructor. 25 // extensions in the constructor.
26 virtual void AddObserver(const Extension* resource); 26 virtual void AddObserver(const Extension* resource);
27 27
28 // See related comment above as to why this method is empty. 28 // See related comment above as to why this method is empty.
29 virtual void RemoveObserver(const Extension* resource); 29 virtual void RemoveObserver(const Extension* resource);
30 30
31 // Overriding AutomationResourceTracker Observe. AutomationResourceTracker's 31 // Overriding AutomationResourceTracker Observe. AutomationResourceTracker's
32 // Observe expects the NotificationSource to be the object that is closing. 32 // Observe expects the NotificationSource to be the object that is closing.
33 // This is not true for the relevant extension notifications, so we have to 33 // This is not true for the relevant extension notifications, so we have to
34 // the observation ourselves. 34 // the observation ourselves.
35 virtual void Observe(NotificationType type, 35 virtual void Observe(int type,
36 const NotificationSource& source, 36 const NotificationSource& source,
37 const NotificationDetails& details); 37 const NotificationDetails& details);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_ 40 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698