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_OPERATIONS_BASE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 public net::URLFetcherDelegate { | 90 public net::URLFetcherDelegate { |
91 public: | 91 public: |
92 // Overridden from GDataOperationInterface. | 92 // Overridden from GDataOperationInterface. |
93 virtual void Start(const std::string& auth_token) OVERRIDE; | 93 virtual void Start(const std::string& auth_token) OVERRIDE; |
94 | 94 |
95 // Overridden from GDataOperationInterface. | 95 // Overridden from GDataOperationInterface. |
96 virtual void SetReAuthenticateCallback( | 96 virtual void SetReAuthenticateCallback( |
97 const ReAuthenticateCallback& callback) OVERRIDE; | 97 const ReAuthenticateCallback& callback) OVERRIDE; |
98 | 98 |
99 protected: | 99 protected: |
100 UrlFetchOperationBase(OperationRegistry* registry); | 100 explicit UrlFetchOperationBase(OperationRegistry* registry); |
101 UrlFetchOperationBase(OperationRegistry* registry, | 101 UrlFetchOperationBase(OperationRegistry* registry, |
102 OperationRegistry::OperationType type, | 102 OperationRegistry::OperationType type, |
103 const FilePath& path); | 103 const FilePath& path); |
104 virtual ~UrlFetchOperationBase(); | 104 virtual ~UrlFetchOperationBase(); |
105 | 105 |
106 // Gets URL for the request. | 106 // Gets URL for the request. |
107 virtual GURL GetURL() const = 0; | 107 virtual GURL GetURL() const = 0; |
108 // Returns the request type. A derived class should override this method | 108 // Returns the request type. A derived class should override this method |
109 // for a request type other than HTTP GET. | 109 // for a request type other than HTTP GET. |
110 virtual net::URLFetcher::RequestType GetRequestType() const; | 110 virtual net::URLFetcher::RequestType GetRequestType() const; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 // Note: This should remain the last member so it'll be destroyed and | 224 // Note: This should remain the last member so it'll be destroyed and |
225 // invalidate its weak pointers before any other members are destroyed. | 225 // invalidate its weak pointers before any other members are destroyed. |
226 base::WeakPtrFactory<GetDataOperation> weak_ptr_factory_; | 226 base::WeakPtrFactory<GetDataOperation> weak_ptr_factory_; |
227 DISALLOW_COPY_AND_ASSIGN(GetDataOperation); | 227 DISALLOW_COPY_AND_ASSIGN(GetDataOperation); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace gdata | 230 } // namespace gdata |
231 | 231 |
232 #endif // CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ | 232 #endif // CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
OLD | NEW |