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

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" 12 #include "chrome/browser/google_apis/auth_service.h"
hashimoto 2013/02/08 11:42:21 Do we need to include this?
kinaba 2013/02/12 03:38:07 Done (by adding two #include's in other places).
13 #include "chrome/browser/google_apis/auth_service_observer.h" 13 #include "chrome/browser/google_apis/auth_service_observer.h"
14 #include "chrome/browser/google_apis/drive_api_url_generator.h" 14 #include "chrome/browser/google_apis/drive_api_url_generator.h"
15 #include "chrome/browser/google_apis/drive_service_interface.h" 15 #include "chrome/browser/google_apis/drive_service_interface.h"
16 16
17 class GURL; 17 class GURL;
18 class Profile; 18 class Profile;
19 19
20 namespace base { 20 namespace base {
21 class FilePath; 21 class FilePath;
22 } 22 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // Fetches a filelist from |url| with |search_query|, using Drive V2 API. If 138 // 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 139 // this URL is empty the call will use the default URL. Specify |url| when
140 // pagenated request should be issued. 140 // pagenated request should be issued.
141 // |search_query| specifies query string, whose syntax is described at 141 // |search_query| specifies query string, whose syntax is described at
142 // https://developers.google.com/drive/search-parameters 142 // https://developers.google.com/drive/search-parameters
143 void GetFilelist(const GURL& url, 143 void GetFilelist(const GURL& url,
144 const std::string& search_query, 144 const std::string& search_query,
145 const GetResourceListCallback& callback); 145 const GetResourceListCallback& callback);
146 146
147 // AuthService::Observer override. 147 // AuthServiceObserver override.
148 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 148 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
149 149
150 // DriveServiceObserver Overrides 150 // DriveServiceObserver Overrides
151 virtual void OnProgressUpdate( 151 virtual void OnProgressUpdate(
152 const OperationProgressStatusList& list) OVERRIDE; 152 const OperationProgressStatusList& list) OVERRIDE;
153 153
154 net::URLRequestContextGetter* url_request_context_getter_; 154 net::URLRequestContextGetter* url_request_context_getter_;
155 Profile* profile_; 155 Profile* profile_;
156 scoped_ptr<OperationRunner> runner_; 156 scoped_ptr<OperationRunner> runner_;
157 ObserverList<DriveServiceObserver> observers_; 157 ObserverList<DriveServiceObserver> observers_;
158 DriveApiUrlGenerator url_generator_; 158 DriveApiUrlGenerator url_generator_;
159 const std::string custom_user_agent_; 159 const std::string custom_user_agent_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
162 }; 162 };
163 163
164 } // namespace google_apis 164 } // namespace google_apis
165 165
166 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 166 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698