summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/cloud_print/printer_job_handler.cc13
-rw-r--r--chrome/service/cloud_print/printer_job_handler.h12
2 files changed, 17 insertions, 8 deletions
diff --git a/chrome/service/cloud_print/printer_job_handler.cc b/chrome/service/cloud_print/printer_job_handler.cc
index 8448536..5c772ef 100644
--- a/chrome/service/cloud_print/printer_job_handler.cc
+++ b/chrome/service/cloud_print/printer_job_handler.cc
@@ -17,6 +17,19 @@
#include "googleurl/src/gurl.h"
#include "net/http/http_response_headers.h"
+PrinterJobHandler::JobDetails::JobDetails() {}
+
+PrinterJobHandler::JobDetails::~JobDetails() {}
+
+void PrinterJobHandler::JobDetails::Clear() {
+ job_id_.clear();
+ job_title_.clear();
+ print_ticket_.clear();
+ print_data_mime_type_.clear();
+ print_data_file_path_ = FilePath();
+ tags_.clear();
+}
+
PrinterJobHandler::PrinterJobHandler(
const printing::PrinterBasicInfo& printer_info,
const PrinterInfoFromCloud& printer_info_cloud,
diff --git a/chrome/service/cloud_print/printer_job_handler.h b/chrome/service/cloud_print/printer_job_handler.h
index 4a55fb0..9ffc887 100644
--- a/chrome/service/cloud_print/printer_job_handler.h
+++ b/chrome/service/cloud_print/printer_job_handler.h
@@ -73,20 +73,16 @@ class PrinterJobHandler : public base::RefCountedThreadSafe<PrinterJobHandler>,
PRINT_FAILED,
};
struct JobDetails {
+ JobDetails();
+ ~JobDetails();
+ void Clear();
+
std::string job_id_;
std::string job_title_;
std::string print_ticket_;
FilePath print_data_file_path_;
std::string print_data_mime_type_;
std::vector<std::string> tags_;
- void Clear() {
- job_id_.clear();
- job_title_.clear();
- print_ticket_.clear();
- print_data_mime_type_.clear();
- print_data_file_path_ = FilePath();
- tags_.clear();
- }
};
public: