| OLD | NEW |
| 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" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const base::FilePath& drive_file_path, | 143 const base::FilePath& drive_file_path, |
| 144 const GURL& upload_url, | 144 const GURL& upload_url, |
| 145 int64 content_length, | 145 int64 content_length, |
| 146 const UploadRangeCallback& callback) OVERRIDE; | 146 const UploadRangeCallback& callback) OVERRIDE; |
| 147 virtual void AuthorizeApp( | 147 virtual void AuthorizeApp( |
| 148 const std::string& resource_id, | 148 const std::string& resource_id, |
| 149 const std::string& app_id, | 149 const std::string& app_id, |
| 150 const AuthorizeAppCallback& callback) OVERRIDE; | 150 const AuthorizeAppCallback& callback) OVERRIDE; |
| 151 | 151 |
| 152 private: | 152 private: |
| 153 OperationRegistry* operation_registry() const; | |
| 154 | |
| 155 // AuthServiceObserver override. | 153 // AuthServiceObserver override. |
| 156 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; | 154 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; |
| 157 | 155 |
| 158 net::URLRequestContextGetter* url_request_context_getter_; | 156 net::URLRequestContextGetter* url_request_context_getter_; |
| 159 Profile* profile_; | 157 Profile* profile_; |
| 160 scoped_ptr<OperationRunner> runner_; | 158 scoped_ptr<OperationRunner> runner_; |
| 161 ObserverList<DriveServiceObserver> observers_; | 159 ObserverList<DriveServiceObserver> observers_; |
| 162 DriveApiUrlGenerator url_generator_; | 160 DriveApiUrlGenerator url_generator_; |
| 163 const std::string custom_user_agent_; | 161 const std::string custom_user_agent_; |
| 164 | 162 |
| 165 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 163 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
| 166 }; | 164 }; |
| 167 | 165 |
| 168 } // namespace google_apis | 166 } // namespace google_apis |
| 169 | 167 |
| 170 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ | 168 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ |
| OLD | NEW |