chromium/url/mojom/url.mojom

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module url.mojom;

// The longest GURL length that may be passed over Mojo pipes. Longer GURLs
// may be created and will be considered valid, but when pass over Mojo, URLs
// longer than this are silently replaced with empty, invalid GURLs. Anything
// receiving GURLs must be prepared to receive invalid GURLs without reporting
// a bad message, unless there's a length check before sending the GURL over a
// Mojo pipe.
//
// 2 * 1024 * 1024
const uint32 kMaxURLChars = 2097152;

[Stable]
struct Url {
  string url;
};