Index: chrome/browser/local_discovery/privet_http_impl.h |
diff --git a/chrome/browser/local_discovery/privet_http_impl.h b/chrome/browser/local_discovery/privet_http_impl.h |
index 6a7af420b45f126d714c91daf459bf1c987bec0e..138a4634e93bf6dc897b5137055234d6b6f620f4 100644 |
--- a/chrome/browser/local_discovery/privet_http_impl.h |
+++ b/chrome/browser/local_discovery/privet_http_impl.h |
@@ -154,6 +154,7 @@ class PrivetDataReadOperationImpl : public PrivetDataReadOperation, |
PrivetDataReadOperationImpl( |
PrivetHTTPClientImpl* privet_client, |
const std::string& path, |
+ net::URLFetcher::RequestType request_type, |
const PrivetDataReadOperation::ResultCallback& callback); |
virtual ~PrivetDataReadOperationImpl(); |
@@ -163,6 +164,8 @@ class PrivetDataReadOperationImpl : public PrivetDataReadOperation, |
virtual void SaveDataToFile() OVERRIDE; |
+ virtual void SetUploadFile(const base::FilePath& upload_file) OVERRIDE; |
+ |
virtual PrivetHTTPClient* GetHTTPClient() OVERRIDE; |
virtual void OnError(PrivetURLFetcher* fetcher, |
@@ -185,10 +188,14 @@ class PrivetDataReadOperationImpl : public PrivetDataReadOperation, |
GURL url_; |
int range_start_; |
int range_end_; |
+ net::URLFetcher::RequestType request_type_; |
PrivetDataReadOperation::ResultCallback callback_; |
bool has_range_; |
bool save_to_file_; |
+ bool has_upload_file_; |
+ |
+ base::FilePath upload_file_; |
scoped_ptr<PrivetURLFetcher> url_fetcher_; |
}; |
@@ -331,6 +338,10 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient { |
bool is_dir, |
const PrivetJSONOperation::ResultCallback& callback) OVERRIDE; |
+ virtual scoped_ptr<PrivetDataReadOperation> CreateStorageOverwriteOperation( |
+ const std::string& path, |
+ const PrivetDataReadOperation::ResultCallback& callback) OVERRIDE; |
+ |
virtual const std::string& GetName() OVERRIDE; |
scoped_ptr<PrivetURLFetcher> CreateURLFetcher( |