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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h

Issue 248853002: [NOCOMMIT] Make DriveService{Wrapper|Messenger} class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 6 years, 8 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/sync_file_system/drive_backend/drive_service_wrapper.h
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h b/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..b40cf259e679bb0c6ae920dbb1ae8284ba82c584
--- /dev/null
+++ b/chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h
@@ -0,0 +1,30 @@
+// 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_
+#define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_
+
+#include "base/memory/weak_ptr.h"
+#include "chrome/browser/drive/drive_service_interface.h"
+
+namespace sync_file_system {
+namespace drive_backend {
+
+// This class is a partial wrapper of drive::DriveServiceInterface class,
+// and supports weak pointer.
+class DriveServiceWrapper : public base::SupportsWeakPtr<DriveServiceWrapper> {
+ public:
+ DriveServiceWrapper(drive::DriveServiceInterface* drive_service);
+ ~DriveServiceWrapper();
+
+ drive::DriveServiceInterface* GetDriveService();
+
+ private:
+ drive::DriveServiceInterface* drive_service_;
+};
+
+} // namespace drive_backend
+} // namespace sync_file_system
+
+#endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698