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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.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
« 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 b3001c4dd07a0e6fc71d3774e3638d524187526c..3fbbcaccfcd402724669738498993c56b9b7ab20 100644
--- a/chrome/browser/local_discovery/privet_http_impl.h
+++ b/chrome/browser/local_discovery/privet_http_impl.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/callback.h"
+#include "base/file_util.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/local_discovery/privet_http.h"
@@ -156,6 +157,7 @@ class PrivetLocalPrintOperationImpl
virtual void Start() OVERRIDE;
virtual void SendData(const std::string& data) OVERRIDE;
+ virtual void SendDataFile(const base::FilePath& data) OVERRIDE;
virtual void SetTicket(const std::string& ticket) OVERRIDE;
@@ -195,6 +197,8 @@ class PrivetLocalPrintOperationImpl
void OnCreatejobResponse(bool has_error,
const base::DictionaryValue* value);
+ void SendDataInternal();
+
PrivetHTTPClientImpl* privet_client_;
PrivetLocalPrintOperation::Delegate* delegate_;
@@ -202,6 +206,7 @@ class PrivetLocalPrintOperationImpl
std::string ticket_;
std::string data_;
+ base::FilePath data_file_;
bool use_pdf_;
bool has_capabilities_;
« 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