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

Side by Side Diff: chrome/browser/android/offline_pages/request_coordinator_factory.h

Issue 1929223002: Add skeletons for the factories to create the request coordinator and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt gypi file fix. Created 4 years, 7 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
(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_ANDROID_OFFLINE_PAGES_REQUEST_COORDINATOR_FACTORY_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_REQUEST_COORDINATOR_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10 #include "content/public/browser/browser_context.h"
11
12 namespace base {
13 template <typename T>
14 struct DefaultSingletonTraits;
15 } // namespace base
16
17 namespace offline_pages {
18
19 class RequestCoordinator;
20
21 // A factory to create one unique RequestCoordinator.
22 class RequestCoordinatorFactory : public BrowserContextKeyedServiceFactory {
23 public:
24 static RequestCoordinatorFactory* GetInstance();
25 static RequestCoordinator* GetForBrowserContext(
26 content::BrowserContext* context);
27
28 private:
29 friend struct base::DefaultSingletonTraits<RequestCoordinatorFactory>;
30
31 RequestCoordinatorFactory();
32 ~RequestCoordinatorFactory() override {}
33
34 KeyedService* BuildServiceInstanceFor(
35 content::BrowserContext* context) const override;
36
37 content::BrowserContext* GetBrowserContextToUse(
38 content::BrowserContext* context) const override;
39
40 DISALLOW_COPY_AND_ASSIGN(RequestCoordinatorFactory);
41 };
42
43 } // namespace offline_pages
44
45 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_REQUEST_COORDINATOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698