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

Unified Diff: chrome/browser/automation/automation_extension_tracker.h

Issue 10115018: Convert the infobars interactive_ui_test to a browser_test. Remove the ExtensionProxy class which… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/automation_extension_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_extension_tracker.h
===================================================================
--- chrome/browser/automation/automation_extension_tracker.h (revision 132618)
+++ chrome/browser/automation/automation_extension_tracker.h (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_
-#define CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_
-#pragma once
-
-#include "chrome/browser/automation/automation_resource_tracker.h"
-
-class Extension;
-
-// Tracks an Extension. An Extension is removed on uninstall, not on disable.
-class AutomationExtensionTracker
- : public AutomationResourceTracker<const Extension*> {
- public:
- explicit AutomationExtensionTracker(IPC::Message::Sender* automation);
-
- virtual ~AutomationExtensionTracker();
-
- // This is empty because we do not want to add an observer for every
- // extension added to the tracker. This is because the profile, not the
- // extension, is the one who sends the notification about extension
- // uninstalls. Instead of using this method, one observer is added for all
- // extensions in the constructor.
- virtual void AddObserver(const Extension* resource);
-
- // See related comment above as to why this method is empty.
- virtual void RemoveObserver(const Extension* resource);
-
- // Overriding AutomationResourceTracker Observe. AutomationResourceTracker's
- // Observe expects the NotificationSource to be the object that is closing.
- // This is not true for the relevant extension notifications, so we have to
- // the observation ourselves.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details);
-};
-
-#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_EXTENSION_TRACKER_H_
« no previous file with comments | « no previous file | chrome/browser/automation/automation_extension_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698