Implement WebContents::HasManifest.
This CL adds a method to WebContents which accepts a callback, taking a
single bool argument. The callback will be asynchronously called with
true if the currently active page has a manifest link, and false
otherwise.
BUG=540496
[email protected]
Review URL: https://codereview.chromium.org/1385423007
Cr-Commit-Position: refs/heads/master@{#354197}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 4802886..11f33c4 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2751,6 +2751,10 @@
manifest_manager_host_->GetManifest(GetMainFrame(), callback);
}
+void WebContentsImpl::HasManifest(const HasManifestCallback& callback) {
+ manifest_manager_host_->HasManifest(GetMainFrame(), callback);
+}
+
void WebContentsImpl::ExitFullscreen() {
// Clean up related state and initiate the fullscreen exit.
GetRenderViewHost()->RejectMouseLockOrUnlockIfNecessary();