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

Side by Side Diff: chrome/browser/google_apis/drive_api_service.h

Issue 12229002: Misc cleanups in Drive code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_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/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chrome/browser/google_apis/auth_service.h"
13 #include "chrome/browser/google_apis/auth_service_observer.h" 12 #include "chrome/browser/google_apis/auth_service_observer.h"
14 #include "chrome/browser/google_apis/drive_api_url_generator.h" 13 #include "chrome/browser/google_apis/drive_api_url_generator.h"
15 #include "chrome/browser/google_apis/drive_service_interface.h" 14 #include "chrome/browser/google_apis/drive_service_interface.h"
16 15
17 class GURL; 16 class GURL;
18 class Profile; 17 class Profile;
19 18
20 namespace base { 19 namespace base {
21 class FilePath; 20 class FilePath;
22 } 21 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 136
138 // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If 137 // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If
139 // this URL is empty the call will use the default URL. Specify |url| when 138 // this URL is empty the call will use the default URL. Specify |url| when
140 // pagenated request should be issued. 139 // pagenated request should be issued.
141 // |search_query| specifies query string, whose syntax is described at 140 // |search_query| specifies query string, whose syntax is described at
142 // https://developers.google.com/drive/search-parameters 141 // https://developers.google.com/drive/search-parameters
143 void GetFilelist(const GURL& url, 142 void GetFilelist(const GURL& url,
144 const std::string& search_query, 143 const std::string& search_query,
145 const GetResourceListCallback& callback); 144 const GetResourceListCallback& callback);
146 145
147 // AuthService::Observer override. 146 // AuthServiceObserver override.
148 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 147 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
149 148
150 // DriveServiceObserver Overrides 149 // DriveServiceObserver Overrides
151 virtual void OnProgressUpdate( 150 virtual void OnProgressUpdate(
152 const OperationProgressStatusList& list) OVERRIDE; 151 const OperationProgressStatusList& list) OVERRIDE;
153 152
154 net::URLRequestContextGetter* url_request_context_getter_; 153 net::URLRequestContextGetter* url_request_context_getter_;
155 Profile* profile_; 154 Profile* profile_;
156 scoped_ptr<OperationRunner> runner_; 155 scoped_ptr<OperationRunner> runner_;
157 ObserverList<DriveServiceObserver> observers_; 156 ObserverList<DriveServiceObserver> observers_;
158 DriveApiUrlGenerator url_generator_; 157 DriveApiUrlGenerator url_generator_;
159 const std::string custom_user_agent_; 158 const std::string custom_user_agent_;
160 159
161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 160 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
162 }; 161 };
163 162
164 } // namespace google_apis 163 } // namespace google_apis
165 164
166 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 165 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698