Chromium Code Reviews| Index: chrome/browser/ui/chrome_bubble_manager_factory.h |
| diff --git a/chrome/browser/ui/chrome_bubble_manager_factory.h b/chrome/browser/ui/chrome_bubble_manager_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0326778ad7e163ccc1b6856617feb8537ce8f8a4 |
| --- /dev/null |
| +++ b/chrome/browser/ui/chrome_bubble_manager_factory.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2015 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_UI_CHROME_BUBBLE_MANAGER_FACTORY_H_ |
| +#define CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_FACTORY_H_ |
| + |
| +#include "base/memory/singleton.h" |
| +#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
| + |
| +class ChromeBubbleManager; |
| + |
| +class ChromeBubbleManagerFactory : public BrowserContextKeyedServiceFactory { |
|
msw
2015/08/13 03:37:21
I'm somewhat confused as to why we need a factory
groby-ooo-7-16
2015/08/13 18:44:38
The BrowserContext is the wider context across whi
msw
2015/08/13 19:18:58
I'm not sure I understand what sort of interaction
|
| + public: |
| + static ChromeBubbleManager* GetForBrowserContext( |
| + content::BrowserContext* context); |
| + |
| + static ChromeBubbleManagerFactory* GetInstance(); |
| + |
| + private: |
| + friend struct DefaultSingletonTraits<ChromeBubbleManagerFactory>; |
| + |
| + ChromeBubbleManagerFactory(); |
| + ~ChromeBubbleManagerFactory() override; |
| + |
| + // BrowserContextKeyedServiceFactory: |
| + KeyedService* BuildServiceInstanceFor( |
| + content::BrowserContext* context) const override; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_FACTORY_H_ |