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 #include "chrome/browser/printing/print_job_worker.h" | 5 #include "chrome/browser/printing/print_job_worker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void HoldRefCallback(const scoped_refptr<printing::PrintJobWorkerOwner>& owner, | 34 void HoldRefCallback(const scoped_refptr<printing::PrintJobWorkerOwner>& owner, |
35 const base::Closure& callback) { | 35 const base::Closure& callback) { |
36 callback.Run(); | 36 callback.Run(); |
37 } | 37 } |
38 | 38 |
39 class PrintingContextDelegate : public PrintingContext::Delegate { | 39 class PrintingContextDelegate : public PrintingContext::Delegate { |
40 public: | 40 public: |
41 PrintingContextDelegate(int render_process_id, int render_view_id); | 41 PrintingContextDelegate(int render_process_id, int render_view_id); |
42 virtual ~PrintingContextDelegate(); | 42 virtual ~PrintingContextDelegate(); |
43 | 43 |
44 virtual gfx::NativeView GetParentView() OVERRIDE; | 44 virtual gfx::NativeView GetParentView() override; |
45 virtual std::string GetAppLocale() OVERRIDE; | 45 virtual std::string GetAppLocale() override; |
46 | 46 |
47 private: | 47 private: |
48 int render_process_id_; | 48 int render_process_id_; |
49 int render_view_id_; | 49 int render_view_id_; |
50 }; | 50 }; |
51 | 51 |
52 PrintingContextDelegate::PrintingContextDelegate(int render_process_id, | 52 PrintingContextDelegate::PrintingContextDelegate(int render_process_id, |
53 int render_view_id) | 53 int render_view_id) |
54 : render_process_id_(render_process_id), | 54 : render_process_id_(render_process_id), |
55 render_view_id_(render_view_id) { | 55 render_view_id_(render_view_id) { |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 document_, | 403 document_, |
404 scoped_refptr<PrintedPage>())); | 404 scoped_refptr<PrintedPage>())); |
405 Cancel(); | 405 Cancel(); |
406 | 406 |
407 // Makes sure the variables are reinitialized. | 407 // Makes sure the variables are reinitialized. |
408 document_ = NULL; | 408 document_ = NULL; |
409 page_number_ = PageNumber::npos(); | 409 page_number_ = PageNumber::npos(); |
410 } | 410 } |
411 | 411 |
412 } // namespace printing | 412 } // namespace printing |
OLD | NEW |