OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ | |
6 #define CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ | |
7 | |
8 #include <set> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 | |
13 namespace drive { | |
14 class DriveAppRegistry; | |
15 } | |
16 | |
17 class BrowserContextKeyedServiceFactory; | |
18 class Profile; | |
19 | |
20 // An interface to access Drive service for a given profile. | |
21 class DriveServiceBridge { | |
22 public: | |
23 virtual ~DriveServiceBridge() {} | |
24 | |
25 // Factory to create an instance of DriveServiceBridge. | |
26 static scoped_ptr<DriveServiceBridge> Create(Profile* profile); | |
27 | |
28 // Appends PKS factories this class depends on. | |
29 static void AppendDependsOnFactories( | |
30 std::set<BrowserContextKeyedServiceFactory*>* factories); | |
31 | |
32 // Returns the DriveAppRegistery to use. The ownership is not transferred. | |
33 virtual drive::DriveAppRegistry* GetAppRegistry() = 0; | |
34 }; | |
kinaba
2014/05/30 06:20:29
nit: DISALLOW_COPY_AND_ASSIGN? (or remove #include
xiyuan
2014/05/30 19:15:30
Removed macros.h since this class intends to be an
| |
35 | |
36 #endif // CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ | |
OLD | NEW |