| 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 "components/printing/renderer/print_web_view_helper.h" | 5 #include "components/printing/renderer/print_web_view_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
| 15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
| 16 #include "base/location.h" | 16 #include "base/location.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
| 20 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
| 21 #include "base/process/process_handle.h" | 21 #include "base/process/process_handle.h" |
| 22 #include "base/single_thread_task_runner.h" | 22 #include "base/single_thread_task_runner.h" |
| 23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
| 26 #include "base/threading/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
| 27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
| 28 #include "components/grit/components_resources.h" |
| 28 #include "components/printing/common/print_messages.h" | 29 #include "components/printing/common/print_messages.h" |
| 29 #include "content/public/common/web_preferences.h" | 30 #include "content/public/common/web_preferences.h" |
| 30 #include "content/public/renderer/render_frame.h" | 31 #include "content/public/renderer/render_frame.h" |
| 31 #include "content/public/renderer/render_thread.h" | 32 #include "content/public/renderer/render_thread.h" |
| 32 #include "content/public/renderer/render_view.h" | 33 #include "content/public/renderer/render_view.h" |
| 33 #include "grit/components_resources.h" | |
| 34 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
| 35 #include "printing/features/features.h" | 35 #include "printing/features/features.h" |
| 36 #include "printing/metafile_skia_wrapper.h" | 36 #include "printing/metafile_skia_wrapper.h" |
| 37 #include "printing/pdf_metafile_skia.h" | 37 #include "printing/pdf_metafile_skia.h" |
| 38 #include "printing/units.h" | 38 #include "printing/units.h" |
| 39 #include "third_party/WebKit/public/platform/WebDoubleSize.h" | 39 #include "third_party/WebKit/public/platform/WebDoubleSize.h" |
| 40 #include "third_party/WebKit/public/platform/WebSize.h" | 40 #include "third_party/WebKit/public/platform/WebSize.h" |
| 41 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 41 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 42 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 42 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 43 #include "third_party/WebKit/public/web/WebDocument.h" | 43 #include "third_party/WebKit/public/web/WebDocument.h" |
| (...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 blink::WebConsoleMessage::LevelWarning, message)); | 2360 blink::WebConsoleMessage::LevelWarning, message)); |
| 2361 return false; | 2361 return false; |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 void PrintWebViewHelper::ScriptingThrottler::Reset() { | 2364 void PrintWebViewHelper::ScriptingThrottler::Reset() { |
| 2365 // Reset counter on successful print. | 2365 // Reset counter on successful print. |
| 2366 count_ = 0; | 2366 count_ = 0; |
| 2367 } | 2367 } |
| 2368 | 2368 |
| 2369 } // namespace printing | 2369 } // namespace printing |
| OLD | NEW |