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

Unified Diff: chrome/browser/apps/drive/drive_service_bridge.h

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/apps/drive/drive_service_bridge.h
diff --git a/chrome/browser/apps/drive/drive_service_bridge.h b/chrome/browser/apps/drive/drive_service_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..7bc1ea4e65ca41b4249046f98754ff8175af8058
--- /dev/null
+++ b/chrome/browser/apps/drive/drive_service_bridge.h
@@ -0,0 +1,35 @@
+// 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_APPS_DRIVE_DRIVE_SERVICE_BRIDGE_H_
+#define CHROME_BROWSER_APPS_DRIVE_DRIVE_SERVICE_BRIDGE_H_
+
+#include <set>
+
+#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;
+};
+
+#endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_SERVICE_BRIDGE_H_
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider_browsertest.cc ('k') | chrome/browser/apps/drive/drive_service_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698