Index: chrome/browser/local_discovery/privet_http.h |
diff --git a/chrome/browser/local_discovery/privet_http.h b/chrome/browser/local_discovery/privet_http.h |
index e4dca10309b392d418c3757bc87d7f88cffb00e2..c091e60baec40194d586ef177df3fb9981f93ee5 100644 |
--- a/chrome/browser/local_discovery/privet_http.h |
+++ b/chrome/browser/local_discovery/privet_http.h |
@@ -64,6 +64,9 @@ class PrivetDataReadOperation { |
virtual void SaveDataToFile() = 0; |
+ // Set upload file. Only valid if the request is a PUT or POST request. |
+ virtual void SetUploadFile(const base::FilePath& upload_file) = 0; |
+ |
virtual PrivetHTTPClient* GetHTTPClient() = 0; |
}; |
@@ -193,6 +196,9 @@ class PrivetHTTPClient { |
const std::string& name, |
bool is_dir, |
const PrivetJSONOperation::ResultCallback& callback) = 0; |
+ virtual scoped_ptr<PrivetDataReadOperation> CreateStorageOverwriteOperation( |
+ const std::string& path, |
+ const PrivetDataReadOperation::ResultCallback& callback) = 0; |
// A name for the HTTP client, e.g. the device name for the privet device. |
virtual const std::string& GetName() = 0; |