Chromium Code Reviews| Index: chrome/browser/ui/app_list/drive/drive_service_bridge.h |
| diff --git a/chrome/browser/ui/app_list/drive/drive_service_bridge.h b/chrome/browser/ui/app_list/drive/drive_service_bridge.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eac037e9fd0ef39ae794b751cd5d68effb9fb149 |
| --- /dev/null |
| +++ b/chrome/browser/ui/app_list/drive/drive_service_bridge.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ |
| +#define CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ |
| + |
| +#include <set> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace drive { |
| +class DriveAppRegistry; |
| +} |
| + |
| +class BrowserContextKeyedServiceFactory; |
| +class Profile; |
| + |
| +// An interface to access Drive service for a given profile. |
| +class DriveServiceBridge { |
| + public: |
| + virtual ~DriveServiceBridge() {} |
| + |
| + // Factory to create an instance of DriveServiceBridge. |
| + static scoped_ptr<DriveServiceBridge> Create(Profile* profile); |
| + |
| + // Appends PKS factories this class depends on. |
| + static void AppendDependsOnFactories( |
| + std::set<BrowserContextKeyedServiceFactory*>* factories); |
| + |
| + // Returns the DriveAppRegistery to use. The ownership is not transferred. |
| + virtual drive::DriveAppRegistry* GetAppRegistry() = 0; |
| +}; |
|
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
|
| + |
| +#endif // CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_SERVICE_BRIDGE_H_ |