OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/cloud_print/privet_http_impl.h" | 5 #include "chrome/browser/printing/cloud_print/privet_http_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/rand_util.h" | 17 #include "base/rand_util.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" | 21 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" |
22 #include "chrome/browser/printing/cloud_print/privet_constants.h" | 22 #include "chrome/browser/printing/cloud_print/privet_constants.h" |
23 #include "chrome/common/chrome_content_client.h" | 23 #include "chrome/common/chrome_content_client.h" |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/common/cloud_print/cloud_print_constants.h" | 25 #include "chrome/common/cloud_print/cloud_print_constants.h" |
26 #include "net/base/url_util.h" | 26 #include "net/base/url_util.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
28 | 28 |
29 #if defined(ENABLE_PRINT_PREVIEW) | 29 #if defined(ENABLE_PRINT_PREVIEW) |
30 #include "chrome/browser/printing/pwg_raster_converter.h" | 30 #include "chrome/browser/printing/pwg_raster_converter.h" |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 PrivetLocalPrintOperation::Delegate* delegate) { | 799 PrivetLocalPrintOperation::Delegate* delegate) { |
800 #if defined(ENABLE_PRINT_PREVIEW) | 800 #if defined(ENABLE_PRINT_PREVIEW) |
801 return std::unique_ptr<PrivetLocalPrintOperation>( | 801 return std::unique_ptr<PrivetLocalPrintOperation>( |
802 new PrivetLocalPrintOperationImpl(info_client(), delegate)); | 802 new PrivetLocalPrintOperationImpl(info_client(), delegate)); |
803 #else | 803 #else |
804 return std::unique_ptr<PrivetLocalPrintOperation>(); | 804 return std::unique_ptr<PrivetLocalPrintOperation>(); |
805 #endif // ENABLE_PRINT_PREVIEW | 805 #endif // ENABLE_PRINT_PREVIEW |
806 } | 806 } |
807 | 807 |
808 } // namespace cloud_print | 808 } // namespace cloud_print |
OLD | NEW |