1// Copyright 2016 The Chromium Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module url.mojom; 6 7// The longest GURL length that may be passed over Mojo pipes. Longer GURLs 8// may be created and will be considered valid, but when pass over Mojo, URLs 9// longer than this are silently replaced with empty, invalid GURLs. Anything 10// receiving GURLs must be prepared to receive invalid GURLs without reporting 11// a bad message, unless there's a length check before sending the GURL over a 12// Mojo pipe. 13// 14// 2 * 1024 * 1024 15const uint32 kMaxURLChars = 2097152; 16 17[Stable] 18struct Url { 19 string url; 20}; 21