| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 // The next response handler can either be a JSONDataHandler or a | 268 // The next response handler can either be a JSONDataHandler or a |
| 269 // DataHandler (depending on the current request being made). | 269 // DataHandler (depending on the current request being made). |
| 270 JSONDataHandler next_json_data_handler_; | 270 JSONDataHandler next_json_data_handler_; |
| 271 DataHandler next_data_handler_; | 271 DataHandler next_data_handler_; |
| 272 // The thread on which the actual print operation happens | 272 // The thread on which the actual print operation happens |
| 273 base::Thread print_thread_; | 273 base::Thread print_thread_; |
| 274 // The Job spooler object. This is only non-NULL during a print operation. | 274 // The Job spooler object. This is only non-NULL during a print operation. |
| 275 // It lives and dies on |print_thread_| | 275 // It lives and dies on |print_thread_| |
| 276 scoped_refptr<PrintSystem::JobSpooler> job_spooler_; | 276 scoped_refptr<PrintSystem::JobSpooler> job_spooler_; |
| 277 // The message loop proxy representing the thread on which this object | 277 // The task runner representing the thread on which this object was created. |
| 278 // was created. Used by the print thread. | 278 // Used by the print thread. |
| 279 scoped_refptr<base::SingleThreadTaskRunner> job_handler_task_runner_; | 279 scoped_refptr<base::SingleThreadTaskRunner> job_handler_task_runner_; |
| 280 | 280 |
| 281 // There may be pending tasks in the message queue when Shutdown is called. | 281 // There may be pending tasks in the message queue when Shutdown is called. |
| 282 // We set this flag so as to do nothing in those tasks. | 282 // We set this flag so as to do nothing in those tasks. |
| 283 bool shutting_down_; | 283 bool shutting_down_; |
| 284 | 284 |
| 285 // A string indicating the reason we are fetching jobs from the server | 285 // A string indicating the reason we are fetching jobs from the server |
| 286 // (used to specify the reason in the fetch URL). | 286 // (used to specify the reason in the fetch URL). |
| 287 std::string job_fetch_reason_; | 287 std::string job_fetch_reason_; |
| 288 // Flags that specify various pending server updates | 288 // Flags that specify various pending server updates |
| (...skipping 17 matching lines...) Expand all Loading... |
| 306 base::Time last_caps_update_time_; | 306 base::Time last_caps_update_time_; |
| 307 | 307 |
| 308 base::WeakPtrFactory<PrinterJobHandler> weak_ptr_factory_; | 308 base::WeakPtrFactory<PrinterJobHandler> weak_ptr_factory_; |
| 309 | 309 |
| 310 DISALLOW_COPY_AND_ASSIGN(PrinterJobHandler); | 310 DISALLOW_COPY_AND_ASSIGN(PrinterJobHandler); |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 } // namespace cloud_print | 313 } // namespace cloud_print |
| 314 | 314 |
| 315 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ | 315 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINTER_JOB_HANDLER_H_ |
| OLD | NEW |