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

Side by Side Diff: extensions/browser/extension_registry_observer.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
7 7
8 #include "extensions/browser/uninstall_reason.h" 8 #include "extensions/browser/uninstall_reason.h"
9 #include "extensions/common/extension.h" 9 #include "extensions/common/extension.h"
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool is_update) {} 69 bool is_update) {}
70 70
71 // Called after an extension is uninstalled. The extension no longer exists in 71 // Called after an extension is uninstalled. The extension no longer exists in
72 // any of the ExtensionRegistry sets (enabled, disabled, etc.). 72 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
73 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 73 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context,
74 const Extension* extension, 74 const Extension* extension,
75 UninstallReason reason) {} 75 UninstallReason reason) {}
76 76
77 // Notifies observers that the observed object is going away. 77 // Notifies observers that the observed object is going away.
78 virtual void OnShutdown(ExtensionRegistry* registry) {} 78 virtual void OnShutdown(ExtensionRegistry* registry) {}
79
80 protected:
81 ExtensionRegistryObserver() = default;
79 }; 82 };
80 83
81 } // namespace extensions 84 } // namespace extensions
82 85
83 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 86 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698