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

Unified Diff: chrome/browser/ui/toolbar/app_menu_icon_controller.h

Issue 2037883004: [Win] Add reporting of total number of modules loaded in browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 4 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 | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/toolbar/app_menu_icon_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/app_menu_icon_controller.h
diff --git a/chrome/browser/ui/toolbar/app_menu_icon_controller.h b/chrome/browser/ui/toolbar/app_menu_icon_controller.h
index 4d8698f08e527a1dfef48ceb7f87d07f4d263d62..05f9de6ef8fdb74c8e855288a837d6a688c14c29 100644
--- a/chrome/browser/ui/toolbar/app_menu_icon_controller.h
+++ b/chrome/browser/ui/toolbar/app_menu_icon_controller.h
@@ -12,11 +12,19 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_service.h"
+#if defined(OS_WIN)
+#include "chrome/browser/win/enumerate_modules_model.h"
+#endif
+
class Profile;
// AppMenuIconController encapsulates the logic for badging the app menu icon
// as a result of various events - such as available updates, errors, etc.
-class AppMenuIconController : public content::NotificationObserver {
+class AppMenuIconController :
+#if defined(OS_WIN)
+ public EnumerateModulesModel::Observer,
+#endif
+ public content::NotificationObserver {
public:
enum class IconType {
NONE,
@@ -56,6 +64,12 @@ class AppMenuIconController : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+#if defined(OS_WIN)
+ // EnumerateModulesModel:
+ void OnScanCompleted() override;
+ void OnConflictsAcknowledged() override;
+#endif
+
Profile* profile_;
Delegate* delegate_;
content::NotificationRegistrar registrar_;
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/toolbar/app_menu_icon_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698