Don't emit RevocableInterfacePtr in mojo's blink bindings

The code that we emit in mojo's blink bindings are sometimes
loaded into non-blink code (see bug) and from there you should not
access code inside blink. Since RevocableInterfacePtr lives inside
blink, that causes dependency and layering violations.

Everyone using blink bindings got something similar to.
ERROR at //out/Default/gen/components/content_settings/core/common/content_settings.mojom-blink-forward.h:20:11: Include not allowed.
#include "third_party/blink/renderer/platform/mojo/revocable_interface_ptr.h"
It is not in any dependency of
The include file is in the target(s):
which should somehow be reachable.

In total there were about 1000 reported dependency errors
because of this.

This fixes this by inlining the few uses and removing the includes.

Bug: 938893
Change-Id: If0a682414b27912c8ff55b4bc0e477c9948ba051
Reviewed-by: Ken Rockot <>
Reviewed-by: Kentaro Hara <>
Commit-Queue: Daniel Bratell <>
Cr-Commit-Position: refs/heads/master@{#640228}
7 files changed