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

Side by Side Diff: components/printing/renderer/print_web_view_helper.cc

Issue 811563008: Moving files from //chrome to //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps, owners, readme 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/renderer/printing/print_web_view_helper.h" 5 #include "components/printing/renderer/print_web_view_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/process/process_handle.h" 14 #include "base/process/process_handle.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "chrome/common/print_messages.h" 18 #include "components/printing/common/print_messages.h"
19 #include "chrome/grit/browser_resources.h"
20 #include "content/public/common/web_preferences.h" 19 #include "content/public/common/web_preferences.h"
21 #include "content/public/renderer/render_frame.h" 20 #include "content/public/renderer/render_frame.h"
22 #include "content/public/renderer/render_thread.h" 21 #include "content/public/renderer/render_thread.h"
23 #include "content/public/renderer/render_view.h" 22 #include "content/public/renderer/render_view.h"
23 #include "grit/components_resources.h"
24 #include "net/base/escape.h" 24 #include "net/base/escape.h"
25 #include "printing/pdf_metafile_skia.h" 25 #include "printing/pdf_metafile_skia.h"
26 #include "printing/units.h" 26 #include "printing/units.h"
27 #include "third_party/WebKit/public/platform/WebSize.h" 27 #include "third_party/WebKit/public/platform/WebSize.h"
28 #include "third_party/WebKit/public/platform/WebURLRequest.h" 28 #include "third_party/WebKit/public/platform/WebURLRequest.h"
29 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 29 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
30 #include "third_party/WebKit/public/web/WebDocument.h" 30 #include "third_party/WebKit/public/web/WebDocument.h"
31 #include "third_party/WebKit/public/web/WebElement.h" 31 #include "third_party/WebKit/public/web/WebElement.h"
32 #include "third_party/WebKit/public/web/WebFrameClient.h" 32 #include "third_party/WebKit/public/web/WebFrameClient.h"
33 #include "third_party/WebKit/public/web/WebLocalFrame.h" 33 #include "third_party/WebKit/public/web/WebLocalFrame.h"
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 blink::WebConsoleMessage::LevelWarning, message)); 2017 blink::WebConsoleMessage::LevelWarning, message));
2018 return false; 2018 return false;
2019 } 2019 }
2020 2020
2021 void PrintWebViewHelper::ScriptingThrottler::Reset() { 2021 void PrintWebViewHelper::ScriptingThrottler::Reset() {
2022 // Reset counter on successful print. 2022 // Reset counter on successful print.
2023 count_ = 0; 2023 count_ = 0;
2024 } 2024 }
2025 2025
2026 } // namespace printing 2026 } // namespace printing
OLDNEW
« no previous file with comments | « components/printing/renderer/print_web_view_helper.h ('k') | components/printing/renderer/print_web_view_helper_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698