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

Side by Side Diff: chrome/browser/android/blimp/blimp_client_context_factory.h

Issue 2233023002: Adding BlimpNavigationController to Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nav_handler_remove
Patch Set: Fixing unit tests Created 4 years, 4 months 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 2016 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_
6 #define CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_ 6 #define CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10 10
(...skipping 12 matching lines...) Expand all
23 class BrowserContext; 23 class BrowserContext;
24 } // namespace content 24 } // namespace content
25 25
26 // BlimpClientContextFactory is the main client class for interactive with 26 // BlimpClientContextFactory is the main client class for interactive with
27 // blimp. 27 // blimp.
28 class BlimpClientContextFactory : public BrowserContextKeyedServiceFactory { 28 class BlimpClientContextFactory : public BrowserContextKeyedServiceFactory {
29 public: 29 public:
30 // Returns singleton instance of BlimpClientContextFactory. 30 // Returns singleton instance of BlimpClientContextFactory.
31 static BlimpClientContextFactory* GetInstance(); 31 static BlimpClientContextFactory* GetInstance();
32 32
33 // Returns the BlimpClientContext associated with |context|. 33 // Returns the BlimpClientContext associated with |context| or creates a new
34 // one if it doesn't exist.
34 static blimp::client::BlimpClientContext* GetForBrowserContext( 35 static blimp::client::BlimpClientContext* GetForBrowserContext(
35 content::BrowserContext* context); 36 content::BrowserContext* context);
36 37
37 private: 38 private:
38 friend struct base::DefaultSingletonTraits<BlimpClientContextFactory>; 39 friend struct base::DefaultSingletonTraits<BlimpClientContextFactory>;
39 40
40 BlimpClientContextFactory(); 41 BlimpClientContextFactory();
41 ~BlimpClientContextFactory() override; 42 ~BlimpClientContextFactory() override;
42 43
43 // BrowserContextKeyedServiceFactory overrides: 44 // BrowserContextKeyedServiceFactory overrides:
44 KeyedService* BuildServiceInstanceFor( 45 KeyedService* BuildServiceInstanceFor(
45 content::BrowserContext* context) const override; 46 content::BrowserContext* context) const override;
46 content::BrowserContext* GetBrowserContextToUse( 47 content::BrowserContext* GetBrowserContextToUse(
47 content::BrowserContext* context) const override; 48 content::BrowserContext* context) const override;
48 49
49 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextFactory); 50 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextFactory);
50 }; 51 };
51 52
52 #endif // CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_ 53 #endif // CHROME_BROWSER_ANDROID_BLIMP_BLIMP_CLIENT_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/blimp/blimp_client_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698