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

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

Issue 10837338: Remove "GData" prefix from non-GData specific classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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_DRIVE_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/chromeos/gdata/auth_service.h"
12 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" 13 #include "chrome/browser/chromeos/gdata/drive_service_interface.h"
13 #include "chrome/browser/chromeos/gdata/gdata_operations.h" 14 #include "chrome/browser/chromeos/gdata/gdata_operations.h"
14 #include "chrome/browser/chromeos/gdata/gdata_auth_service.h"
15 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 15 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
16 16
17 class FilePath; 17 class FilePath;
18 class GURL; 18 class GURL;
19 class Profile; 19 class Profile;
20 20
21 namespace gdata { 21 namespace gdata {
22 22
23 class GDataOperationRunner; 23 class OperationRunner;
24 24
25 // This class provides documents feed service calls for Drive V2 API. 25 // This class provides documents feed service calls for Drive V2 API.
26 // Details of API call are abstracted in each operation class and this class 26 // Details of API call are abstracted in each operation class and this class
27 // works as a thin wrapper for the API. 27 // works as a thin wrapper for the API.
28 class DriveAPIService : public DriveServiceInterface { 28 class DriveAPIService : public DriveServiceInterface {
29 public: 29 public:
30 // Instance is usually created by GDataSystemServiceFactory and owned by 30 // Instance is usually created by GDataSystemServiceFactory and owned by
31 // GDataFileSystem. 31 // GDataFileSystem.
32 DriveAPIService(); 32 DriveAPIService();
33 virtual ~DriveAPIService(); 33 virtual ~DriveAPIService();
34 34
35 // DriveServiceInterface Overrides 35 // DriveServiceInterface Overrides
36 virtual void Initialize(Profile* profile) OVERRIDE; 36 virtual void Initialize(Profile* profile) OVERRIDE;
37 virtual GDataOperationRegistry* operation_registry() const OVERRIDE; 37 virtual OperationRegistry* operation_registry() const OVERRIDE;
38 virtual void CancelAll() OVERRIDE; 38 virtual void CancelAll() OVERRIDE;
39 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE; 39 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE;
40 virtual bool HasAccessToken() const OVERRIDE; 40 virtual bool HasAccessToken() const OVERRIDE;
41 virtual bool HasRefreshToken() const OVERRIDE; 41 virtual bool HasRefreshToken() const OVERRIDE;
42 virtual void GetDocuments(const GURL& feed_url, 42 virtual void GetDocuments(const GURL& feed_url,
43 int64 start_changestamp, 43 int64 start_changestamp,
44 const std::string& search_query, 44 const std::string& search_query,
45 const std::string& directory_resource_id, 45 const std::string& directory_resource_id,
46 const GetDataCallback& callback) OVERRIDE; 46 const GetDataCallback& callback) OVERRIDE;
47 virtual void GetDocumentEntry(const std::string& resource_id, 47 virtual void GetDocumentEntry(const std::string& resource_id,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If 103 // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If
104 // this URL is empty the call will use the default URL. Specify |url| when 104 // this URL is empty the call will use the default URL. Specify |url| when
105 // pagenated request should be issued. 105 // pagenated request should be issued.
106 // |search_query| specifies query string, whose syntax is described at 106 // |search_query| specifies query string, whose syntax is described at
107 // https://developers.google.com/drive/search-parameters 107 // https://developers.google.com/drive/search-parameters
108 virtual void GetFilelist(const GURL& url, 108 virtual void GetFilelist(const GURL& url,
109 const std::string& search_query, 109 const std::string& search_query,
110 const GetDataCallback& callback); 110 const GetDataCallback& callback);
111 111
112 Profile* profile_; 112 Profile* profile_;
113 scoped_ptr<GDataOperationRunner> runner_; 113 scoped_ptr<OperationRunner> runner_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 115 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
116 }; 116 };
117 117
118 } // namespace gdata 118 } // namespace gdata
119 119
120 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_SERVICE_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_operations.cc ('k') | chrome/browser/chromeos/gdata/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698