BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / autocomplete / shortcuts_extensions_manager.h
blobe29c76560fb697607feeec912a964415bada9775
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_EXTENSIONS_MANAGER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_EXTENSIONS_MANAGER_H_
8 #include "base/supports_user_data.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
12 class Profile;
14 // This class manages the removal of shortcuts associated with an extension when
15 // that extension is unloaded.
16 class ShortcutsExtensionsManager : public base::SupportsUserData::Data,
17 public content::NotificationObserver {
18 public:
19 explicit ShortcutsExtensionsManager(Profile* profile);
20 ~ShortcutsExtensionsManager() override;
22 private:
23 // content::NotificationObserver:
24 void Observe(int type,
25 const content::NotificationSource& source,
26 const content::NotificationDetails& details) override;
28 Profile* profile_;
29 content::NotificationRegistrar notification_registrar_;
31 DISALLOW_COPY_AND_ASSIGN(ShortcutsExtensionsManager);
34 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_EXTENSIONS_MANAGER_H_