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

Side by Side Diff: chrome/browser/printing/print_view_manager.cc

Issue 811563008: Moving files from //chrome to //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fix Created 5 years, 11 months 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 unified diff | Download patch
OLDNEW
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_view_manager.h" 5 #include "chrome/browser/printing/print_view_manager.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/printing/print_job_manager.h" 13 #include "chrome/browser/printing/print_job_manager.h"
14 #include "chrome/browser/printing/print_preview_dialog_controller.h" 14 #include "chrome/browser/printing/print_preview_dialog_controller.h"
15 #include "chrome/browser/printing/print_view_manager_observer.h" 15 #include "chrome/browser/printing/print_view_manager_observer.h"
16 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 16 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
17 #include "chrome/common/print_messages.h" 17 #include "components/printing/common/print_messages.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManager); 23 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManager);
24 24
25 namespace { 25 namespace {
26 26
27 // Keeps track of pending scripted print preview closures. 27 // Keeps track of pending scripted print preview closures.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 OnSetupScriptedPrintPreview) 187 OnSetupScriptedPrintPreview)
188 IPC_MESSAGE_HANDLER(PrintHostMsg_ShowScriptedPrintPreview, 188 IPC_MESSAGE_HANDLER(PrintHostMsg_ShowScriptedPrintPreview,
189 OnShowScriptedPrintPreview) 189 OnShowScriptedPrintPreview)
190 IPC_MESSAGE_UNHANDLED(handled = false) 190 IPC_MESSAGE_UNHANDLED(handled = false)
191 IPC_END_MESSAGE_MAP() 191 IPC_END_MESSAGE_MAP()
192 192
193 return handled ? true : PrintViewManagerBase::OnMessageReceived(message); 193 return handled ? true : PrintViewManagerBase::OnMessageReceived(message);
194 } 194 }
195 195
196 } // namespace printing 196 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698