OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_dialog_gtk.h" | 5 #include "chrome/browser/printing/print_dialog_gtk.h" |
6 | 6 |
7 #include <gtk/gtkprintjob.h> | 7 #include <gtk/gtkprintjob.h> |
8 #include <gtk/gtkprintunixdialog.h> | 8 #include <gtk/gtkprintunixdialog.h> |
9 #include <gtk/gtkpagesetupunixdialog.h> | 9 #include <gtk/gtkpagesetupunixdialog.h> |
10 | 10 |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/file_util_proxy.h" | 12 #include "base/file_util_proxy.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/lock.h" | 14 #include "base/lock.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "chrome/browser/browser_list.h" | 18 #include "chrome/browser/browser_list.h" |
19 #include "chrome/browser/browser_thread.h" | 19 #include "chrome/browser/browser_thread.h" |
20 #include "chrome/browser/browser_window.h" | 20 #include "chrome/browser/browser_window.h" |
21 #include "chrome/browser/tab_contents/infobar_delegate.h" | 21 #include "chrome/browser/tab_contents/infobar_delegate.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 PrintDialogGtk* g_print_dialog = NULL; | 26 PrintDialogGtk* g_print_dialog = NULL; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 g_object_unref(job); | 172 g_object_unref(job); |
173 | 173 |
174 base::FileUtilProxy::Delete( | 174 base::FileUtilProxy::Delete( |
175 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 175 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
176 path_to_pdf_, | 176 path_to_pdf_, |
177 false, | 177 false, |
178 NULL); | 178 NULL); |
179 | 179 |
180 delete this; | 180 delete this; |
181 } | 181 } |
OLD | NEW |