Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 866813005: Remove some dead code in WebFrame (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebLocalFrameImpl.cpp
diff --git a/sky/engine/web/WebLocalFrameImpl.cpp b/sky/engine/web/WebLocalFrameImpl.cpp
index 1945a449c432541a2203eb9112ce3474d4be7d19..2813ed7aa83a7a4b3a017c5ea7164b3edcbc8c59 100644
--- a/sky/engine/web/WebLocalFrameImpl.cpp
+++ b/sky/engine/web/WebLocalFrameImpl.cpp
@@ -308,20 +308,6 @@ void WebLocalFrameImpl::load(const WebURL& url, mojo::ScopedDataPipeConsumerHand
frame()->mojoLoader().load(url, responseStream.Pass());
}
-void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, const WebURL& referrerURL)
-{
- String referrer = referrerURL.isEmpty() ? frame()->document()->outgoingReferrer() : String(referrerURL.spec().utf16());
- referrer = SecurityPolicy::generateReferrerHeader(frame()->document()->referrerPolicy(), request.url(), referrer);
- if (referrer.isEmpty())
- return;
- request.setHTTPReferrer(referrer, static_cast<WebReferrerPolicy>(frame()->document()->referrerPolicy()));
-}
-
-unsigned WebLocalFrameImpl::unloadListenerCount() const
-{
- return frame()->domWindow()->pendingUnloadEventListeners();
-}
-
void WebLocalFrameImpl::replaceSelection(const WebString& text)
{
bool selectReplacement = false;
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698