| 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_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 std::string GetResponseHeadersAsString( | 133 std::string GetResponseHeadersAsString( |
| 134 const content::URLFetcher* url_fetcher); | 134 const content::URLFetcher* url_fetcher); |
| 135 | 135 |
| 136 Profile* profile_; | 136 Profile* profile_; |
| 137 ReAuthenticateCallback re_authenticate_callback_; | 137 ReAuthenticateCallback re_authenticate_callback_; |
| 138 scoped_refptr<base::MessageLoopProxy> relay_proxy_; | 138 scoped_refptr<base::MessageLoopProxy> relay_proxy_; |
| 139 int re_authenticate_count_; | 139 int re_authenticate_count_; |
| 140 bool save_temp_file_; | 140 bool save_temp_file_; |
| 141 FilePath output_file_path_; | 141 FilePath output_file_path_; |
| 142 scoped_ptr<content::URLFetcher> url_fetcher_; | 142 scoped_ptr<content::URLFetcher> url_fetcher_; |
| 143 bool started_; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 //============================ EntryActionOperation ============================ | 146 //============================ EntryActionOperation ============================ |
| 146 | 147 |
| 147 // This class performs a simple action over a given entry (document/file). | 148 // This class performs a simple action over a given entry (document/file). |
| 148 // It is meant to be used for operations that return no JSON blobs. | 149 // It is meant to be used for operations that return no JSON blobs. |
| 149 class EntryActionOperation : public UrlFetchOperationBase { | 150 class EntryActionOperation : public UrlFetchOperationBase { |
| 150 public: | 151 public: |
| 151 EntryActionOperation(GDataOperationRegistry* registry, | 152 EntryActionOperation(GDataOperationRegistry* registry, |
| 152 Profile* profile, | 153 Profile* profile, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 private: | 492 private: |
| 492 ResumeUploadCallback callback_; | 493 ResumeUploadCallback callback_; |
| 493 ResumeUploadParams params_; | 494 ResumeUploadParams params_; |
| 494 | 495 |
| 495 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); | 496 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); |
| 496 }; | 497 }; |
| 497 | 498 |
| 498 } // namespace gdata | 499 } // namespace gdata |
| 499 | 500 |
| 500 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 501 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
| OLD | NEW |