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

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

Issue 72033002: Added the ability to set the upload file path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: chrome/browser/local_discovery/privet_url_fetcher.h
diff --git a/chrome/browser/local_discovery/privet_url_fetcher.h b/chrome/browser/local_discovery/privet_url_fetcher.h
index c3fe04b9174bd30ca94766f8076bbb6446561842..f3b7405378d0cc73385b7162db9ac81ef0ef5479 100644
--- a/chrome/browser/local_discovery/privet_url_fetcher.h
+++ b/chrome/browser/local_discovery/privet_url_fetcher.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/file_util.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "net/url_request/url_fetcher.h"
@@ -14,6 +15,10 @@
#include "net/url_request/url_request_context_getter.h"
#include "url/gurl.h"
+namespace base {
+class FilePath;
+}
+
namespace local_discovery {
const int kPrivetHTTPCodeInternalFailure = -1;
@@ -65,6 +70,9 @@ class PrivetURLFetcher : public net::URLFetcherDelegate {
void SetUploadData(const std::string& upload_content_type,
const std::string& upload_data);
+ void SetUploadFilePath(const std::string& upload_content_type,
+ const base::FilePath& upload_file_path);
+
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
const GURL& url() const { return url_fetcher_->GetOriginalURL(); }
@@ -89,6 +97,7 @@ class PrivetURLFetcher : public net::URLFetcherDelegate {
int tries_;
std::string upload_data_;
std::string upload_content_type_;
+ base::FilePath upload_file_path_;
scoped_ptr<net::URLFetcher> url_fetcher_;
base::WeakPtrFactory<PrivetURLFetcher> weak_factory_;
« no previous file with comments | « chrome/browser/local_discovery/privet_http_unittest.cc ('k') | chrome/browser/local_discovery/privet_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698