summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/net
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/net')
-rw-r--r--chromium/chrome/common/net/OWNERS3
-rw-r--r--chromium/chrome/common/net/net_error_page_support.mojom17
2 files changed, 20 insertions, 0 deletions
diff --git a/chromium/chrome/common/net/OWNERS b/chromium/chrome/common/net/OWNERS
index b77292902d2..14758211512 100644
--- a/chromium/chrome/common/net/OWNERS
+++ b/chromium/chrome/common/net/OWNERS
@@ -1,4 +1,7 @@
file://net/OWNERS
+per-file *.mojom=set noparent
+per-file *.mojom=file://ipc/SECURITY_OWNERS
+
# COMPONENT: Internals>Network
# TEAM: net-dev@chromium.org
diff --git a/chromium/chrome/common/net/net_error_page_support.mojom b/chromium/chrome/common/net/net_error_page_support.mojom
new file mode 100644
index 00000000000..ae2a112b4e3
--- /dev/null
+++ b/chromium/chrome/common/net/net_error_page_support.mojom
@@ -0,0 +1,17 @@
+// Copyright 2020 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.
+
+module chrome.mojom;
+
+// A per-frame interface used to support network error pages.
+// TODO(darin): Consolidate other such interfaces into this interface.
+interface NetErrorPageSupport {
+ // Called to schedule a download of the current page at a later time.
+ [EnableIf=enable_offline_pages]
+ DownloadPageLater();
+
+ // Called to indicate if download button is being shown in the error page.
+ [EnableIf=enable_offline_pages]
+ SetIsShowingDownloadButtonInErrorPage(bool showing_download_button);
+};