Add ui::SelectFileDialog::FileTypeInfo::ANY_PATH_OR_URL.

For most file select dialogs, hosted docs that can only be accessed via
their URLs are not useful to select. Only browser file-open dialogs can
meaningfully interact with these virtual files, translating their paths
into URLs. Other dialogs return unusable file paths that cannot be
opened as regular files, causing unnecessary and confusing failures.

Add a FileTypeInfo enumerator, ANY_PATH_OR_URL, for clients to opt into
accepting such virtual files, used by Browser. In dialogs not opting
into this mode, disallow selecting hosted docs.

Bug: 843881
Change-Id: I8abc6408e94d60d6e8b3889b0899038c90789119
Reviewed-on: https://chromium-review.googlesource.com/c/1360451
Reviewed-by: Noel Gordon <noel@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614556}
15 files changed