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

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

Issue 15333013: Replace most of the occurrence of OperationRegistry with OperationRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_GDATA_WAPI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_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"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const base::FilePath& drive_file_path, 147 const base::FilePath& drive_file_path,
148 const GURL& upload_url, 148 const GURL& upload_url,
149 int64 content_length, 149 int64 content_length,
150 const UploadRangeCallback& callback) OVERRIDE; 150 const UploadRangeCallback& callback) OVERRIDE;
151 virtual void AuthorizeApp( 151 virtual void AuthorizeApp(
152 const std::string& resource_id, 152 const std::string& resource_id,
153 const std::string& app_id, 153 const std::string& app_id,
154 const AuthorizeAppCallback& callback) OVERRIDE; 154 const AuthorizeAppCallback& callback) OVERRIDE;
155 155
156 private: 156 private:
157 OperationRegistry* operation_registry() const;
158
159 // AuthService::Observer override. 157 // AuthService::Observer override.
160 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 158 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
161 159
162 net::URLRequestContextGetter* url_request_context_getter_; // Not owned. 160 net::URLRequestContextGetter* url_request_context_getter_; // Not owned.
163 scoped_ptr<OperationRunner> runner_; 161 scoped_ptr<OperationRunner> runner_;
164 ObserverList<DriveServiceObserver> observers_; 162 ObserverList<DriveServiceObserver> observers_;
165 // Operation objects should hold a copy of this, rather than a const 163 // Operation objects should hold a copy of this, rather than a const
166 // reference, as they may outlive this object. 164 // reference, as they may outlive this object.
167 const GDataWapiUrlGenerator url_generator_; 165 const GDataWapiUrlGenerator url_generator_;
168 const std::string custom_user_agent_; 166 const std::string custom_user_agent_;
169 167
170 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); 168 DISALLOW_COPY_AND_ASSIGN(GDataWapiService);
171 }; 169 };
172 170
173 } // namespace google_apis 171 } // namespace google_apis
174 172
175 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ 173 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_operations_unittest.cc ('k') | chrome/browser/google_apis/gdata_wapi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698