Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: chrome/browser/local_discovery/privet_http.h

Issue 177373010: [Privet FS] Allow files to be able to be copied in to the privet filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698