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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2416523002: Expose the initiating origin/URL of a navigation in the Blink public API (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 const Vector<String>& removedSelectors) { 674 const Vector<String>& removedSelectors) {
675 if (WebFrameClient* client = m_webFrame->client()) 675 if (WebFrameClient* client = m_webFrame->client())
676 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), 676 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors),
677 WebVector<WebString>(removedSelectors)); 677 WebVector<WebString>(removedSelectors));
678 } 678 }
679 679
680 DocumentLoader* FrameLoaderClientImpl::createDocumentLoader( 680 DocumentLoader* FrameLoaderClientImpl::createDocumentLoader(
681 LocalFrame* frame, 681 LocalFrame* frame,
682 const ResourceRequest& request, 682 const ResourceRequest& request,
683 const SubstituteData& data, 683 const SubstituteData& data,
684 ClientRedirectPolicy clientRedirectPolicy) { 684 ClientRedirectPolicy clientRedirectPolicy,
685 WebDataSourceImpl* ds = 685 Document* requestorDocument) {
686 WebDataSourceImpl::create(frame, request, data, clientRedirectPolicy); 686 WebDataSourceImpl* ds = WebDataSourceImpl::create(
687 if (m_webFrame->client()) 687 frame, request, data, clientRedirectPolicy, requestorDocument);
688 m_webFrame->client()->didCreateDataSource(m_webFrame, ds); 688 m_webFrame->client()->didCreateDataSource(m_webFrame, ds);
689 return ds; 689 return ds;
690 } 690 }
691 691
692 String FrameLoaderClientImpl::userAgent() { 692 String FrameLoaderClientImpl::userAgent() {
693 WebString override = 693 WebString override =
694 m_webFrame->client() ? m_webFrame->client()->userAgentOverride() : ""; 694 m_webFrame->client() ? m_webFrame->client()->userAgentOverride() : "";
695 if (!override.isEmpty()) 695 if (!override.isEmpty())
696 return override; 696 return override;
697 697
698 if (m_userAgent.isEmpty()) 698 if (m_userAgent.isEmpty())
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { 990 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() {
991 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) 991 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot())
992 ->devToolsAgentImpl(); 992 ->devToolsAgentImpl();
993 } 993 }
994 994
995 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 995 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
996 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 996 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
997 } 997 }
998 998
999 } // namespace blink 999 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebDataSourceImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698