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

Side by Side Diff: chrome/browser/chromeos/login/ui/shared_web_view_factory.h

Issue 2512473004: cros: Enable WebUILoginView reuse. (Closed)
Patch Set: Initial upload Created 4 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698