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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_service_interface.h

Issue 10828385: Rename DocumentsServiceInterface to DriveServiceInterface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unnecessary includes. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DOCUMENTS_SERVICE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_SERVICE_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DOCUMENTS_SERVICE_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_SERVICE_INTERFACE_H_
7 7
8 #include "chrome/browser/chromeos/gdata/operations_base.h" 8 #include "chrome/browser/chromeos/gdata/operations_base.h"
9 // TODO(kochi): Further split gdata_operations.h and include only necessary 9 // TODO(kochi): Further split gdata_operations.h and include only necessary
10 // headers. http://crbug.com/141469 10 // headers. http://crbug.com/141469
11 // DownloadActionCallback/InitiateUploadParams/ResulmeUploadParams
11 #include "chrome/browser/chromeos/gdata/gdata_operations.h" 12 #include "chrome/browser/chromeos/gdata/gdata_operations.h"
12 13
13 class Profile; 14 class Profile;
14 15
15 namespace gdata { 16 namespace gdata {
16 17
17 class GDataOperationRegistry; 18 class GDataOperationRegistry;
18 19
19 // Document export format. 20 // Document export format.
20 enum DocumentExportFormat { 21 enum DocumentExportFormat {
(...skipping 18 matching lines...) Expand all
39 }; 40 };
40 41
41 // This defines an interface for sharing by DocumentService and 42 // This defines an interface for sharing by DocumentService and
42 // MockDocumentService so that we can do testing of clients of DocumentService. 43 // MockDocumentService so that we can do testing of clients of DocumentService.
43 // 44 //
44 // All functions must be called on UI thread. DocumentService is built on top 45 // All functions must be called on UI thread. DocumentService is built on top
45 // of URLFetcher that runs on UI thread. 46 // of URLFetcher that runs on UI thread.
46 // 47 //
47 // TODO(zel,benchan): Make the terminology/naming convention (e.g. file vs 48 // TODO(zel,benchan): Make the terminology/naming convention (e.g. file vs
48 // document vs resource, directory vs collection) more consistent and precise. 49 // document vs resource, directory vs collection) more consistent and precise.
49 // TODO(kochi): Rename this to DriveServiceInterface. http://crbug.com/143661. 50 class DriveServiceInterface {
50 class DocumentsServiceInterface {
51 public: 51 public:
52 virtual ~DocumentsServiceInterface() {} 52 virtual ~DriveServiceInterface() {}
53 53
54 // Common service: 54 // Common service:
55 55
56 // Initializes the documents service tied with |profile|. 56 // Initializes the documents service tied with |profile|.
57 virtual void Initialize(Profile* profile) = 0; 57 virtual void Initialize(Profile* profile) = 0;
58 58
59 // Retrieves the operation registry. 59 // Retrieves the operation registry.
60 virtual GDataOperationRegistry* operation_registry() const = 0; 60 virtual GDataOperationRegistry* operation_registry() const = 0;
61 61
62 // Cancels all in-flight operations. 62 // Cancels all in-flight operations.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Authorizes a Drive app with the id |app_id| to open the given document. 192 // Authorizes a Drive app with the id |app_id| to open the given document.
193 // Upon completion, invokes |callback| with results on the calling thread. 193 // Upon completion, invokes |callback| with results on the calling thread.
194 virtual void AuthorizeApp(const GURL& resource_url, 194 virtual void AuthorizeApp(const GURL& resource_url,
195 const std::string& app_id, 195 const std::string& app_id,
196 const GetDataCallback& callback) = 0; 196 const GetDataCallback& callback) = 0;
197 }; 197 };
198 198
199 } // namespace gdata 199 } // namespace gdata
200 200
201 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DOCUMENTS_SERVICE_INTERFACE_H_ 201 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_SERVICE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_service.h ('k') | chrome/browser/chromeos/gdata/drive_task_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698