Index: chrome/browser/printing/cloud_print/privet_http_impl.cc |
diff --git a/chrome/browser/local_discovery/privet_http_impl.cc b/chrome/browser/printing/cloud_print/privet_http_impl.cc |
similarity index 98% |
rename from chrome/browser/local_discovery/privet_http_impl.cc |
rename to chrome/browser/printing/cloud_print/privet_http_impl.cc |
index 1a725375a5dcf32c0444bcb2529038384fc7a92e..e70b18c1254023a699a992487b703835981f7e8d 100644 |
--- a/chrome/browser/local_discovery/privet_http_impl.cc |
+++ b/chrome/browser/printing/cloud_print/privet_http_impl.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/local_discovery/privet_http_impl.h" |
+#include "chrome/browser/printing/cloud_print/privet_http_impl.h" |
#include <stddef.h> |
#include <algorithm> |
@@ -17,7 +17,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/thread_task_runner_handle.h" |
#include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" |
-#include "chrome/browser/local_discovery/privet_constants.h" |
+#include "chrome/browser/printing/cloud_print/privet_constants.h" |
#include "chrome/common/chrome_content_client.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/cloud_print/cloud_print_constants.h" |
@@ -25,14 +25,14 @@ |
#include "url/gurl.h" |
#if defined(ENABLE_PRINT_PREVIEW) |
-#include "chrome/browser/local_discovery/pwg_raster_converter.h" |
+#include "chrome/browser/printing/pwg_raster_converter.h" |
#include "components/cloud_devices/common/printer_description.h" |
#include "printing/pdf_render_settings.h" |
#include "printing/pwg_raster_settings.h" |
#include "ui/gfx/text_elider.h" |
#endif // ENABLE_PRINT_PREVIEW |
-namespace local_discovery { |
+namespace cloud_print { |
namespace { |
@@ -545,6 +545,7 @@ void PrivetLocalPrintOperationImpl::StartPrinting() { |
} |
void PrivetLocalPrintOperationImpl::StartConvertToPWG() { |
+ using printing::PWGRasterConverter; |
if (!pwg_raster_converter_) |
pwg_raster_converter_ = PWGRasterConverter::CreateDefault(); |
@@ -689,7 +690,7 @@ void PrivetLocalPrintOperationImpl::SetPageSize(const gfx::Size& page_size) { |
} |
void PrivetLocalPrintOperationImpl::SetPWGRasterConverterForTesting( |
- scoped_ptr<PWGRasterConverter> pwg_raster_converter) { |
+ scoped_ptr<printing::PWGRasterConverter> pwg_raster_converter) { |
pwg_raster_converter_ = std::move(pwg_raster_converter); |
} |
#endif // ENABLE_PRINT_PREVIEW |
@@ -801,4 +802,4 @@ PrivetV1HTTPClientImpl::CreateLocalPrintOperation( |
#endif // ENABLE_PRINT_PREVIEW |
} |
-} // namespace local_discovery |
+} // namespace cloud_print |