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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.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 | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698