| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_SHARED_WEB_VIEW_FACTORY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_SHARED_WEB_VIEW_FACTORY_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/singleton.h" |
| 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 11 |
| 12 class Profile; |
| 13 |
| 14 namespace chromeos { |
| 15 |
| 16 class SharedWebView; |
| 17 |
| 18 class SharedWebViewFactory : public BrowserContextKeyedServiceFactory { |
| 19 public: |
| 20 static SharedWebView* GetForProfile(Profile* profile); |
| 21 |
| 22 static SharedWebViewFactory* GetInstance(); |
| 23 |
| 24 private: |
| 25 friend struct base::DefaultSingletonTraits<SharedWebViewFactory>; |
| 26 |
| 27 SharedWebViewFactory(); |
| 28 ~SharedWebViewFactory() override; |
| 29 |
| 30 // BrowserContextKeyedServiceFactory: |
| 31 content::BrowserContext* GetBrowserContextToUse( |
| 32 content::BrowserContext* context) const override; |
| 33 KeyedService* BuildServiceInstanceFor( |
| 34 content::BrowserContext* profile) const override; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(SharedWebViewFactory); |
| 37 }; |
| 38 |
| 39 } // namespace chromeos |
| 40 |
| 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SHARED_WEB_VIEW_FACTORY_H_ |
| OLD | NEW |