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

Unified Diff: chromeos/printing/printing_constants.h

Issue 2613683004: Completely rewrite the PpdProvider/PpdCache to use the SCS backend. Along the way, clean it up a l… (Closed)
Patch Set: Address michealpg@ comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/printing/printer_translator_unittest.cc ('k') | components/sync/protocol/printer_specifics.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/printing_constants.h
diff --git a/chromeos/printing/printing_constants.h b/chromeos/printing/printing_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..65e32299a1a4fa018fc86582deefe44c38664414
--- /dev/null
+++ b/chromeos/printing/printing_constants.h
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_PRINTING_PRINTING_CONSTANTS_H_
+#define CHROMEOS_PRINTING_PRINTING_CONSTANTS_H_
+
+namespace chromeos {
+namespace printing {
+
+// Maximum size of a PPD file that we will accept, currently 250k. This number
+// is relatively
+// arbitrary, we just don't want to try to handle ridiculously huge files.
+constexpr size_t kMaxPpdSizeBytes = 250 * 1024;
+
+} // namespace printing
+} // namespace chromeos
+
+#endif // CHROMEOS_PRINTING_PRINTING_CONSTANTS_H_
« no previous file with comments | « chromeos/printing/printer_translator_unittest.cc ('k') | components/sync/protocol/printer_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698