Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 669 const Vector<String>& removedSelectors) { | 669 const Vector<String>& removedSelectors) { |
| 670 if (WebFrameClient* client = m_webFrame->client()) | 670 if (WebFrameClient* client = m_webFrame->client()) |
| 671 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), | 671 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), |
| 672 WebVector<WebString>(removedSelectors)); | 672 WebVector<WebString>(removedSelectors)); |
| 673 } | 673 } |
| 674 | 674 |
| 675 DocumentLoader* FrameLoaderClientImpl::createDocumentLoader( | 675 DocumentLoader* FrameLoaderClientImpl::createDocumentLoader( |
| 676 LocalFrame* frame, | 676 LocalFrame* frame, |
| 677 const ResourceRequest& request, | 677 const ResourceRequest& request, |
| 678 const SubstituteData& data, | 678 const SubstituteData& data, |
| 679 ClientRedirectPolicy clientRedirectPolicy) { | 679 ClientRedirectPolicy clientRedirectPolicy, |
| 680 WebDataSourceImpl* ds = | 680 Document* requestorDocument) { |
| 681 WebDataSourceImpl::create(frame, request, data, clientRedirectPolicy); | 681 WebDataSourceImpl* ds = WebDataSourceImpl::create( |
| 682 if (m_webFrame->client()) | 682 frame, request, data, clientRedirectPolicy, requestorDocument); |
| 683 m_webFrame->client()->didCreateDataSource(m_webFrame, ds); | 683 m_webFrame->client()->didCreateDataSource(m_webFrame, ds); |
|
kuzminruslan
2016/11/12 08:51:57
i am not sure, but perhaps skiped if(m_webFrame->c
| |
| 684 return ds; | 684 return ds; |
| 685 } | 685 } |
| 686 | 686 |
| 687 String FrameLoaderClientImpl::userAgent() { | 687 String FrameLoaderClientImpl::userAgent() { |
| 688 WebString override = | 688 WebString override = |
| 689 m_webFrame->client() ? m_webFrame->client()->userAgentOverride() : ""; | 689 m_webFrame->client() ? m_webFrame->client()->userAgentOverride() : ""; |
| 690 if (!override.isEmpty()) | 690 if (!override.isEmpty()) |
| 691 return override; | 691 return override; |
| 692 | 692 |
| 693 if (m_userAgent.isEmpty()) | 693 if (m_userAgent.isEmpty()) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 974 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { | 974 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { |
| 975 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) | 975 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) |
| 976 ->devToolsAgentImpl(); | 976 ->devToolsAgentImpl(); |
| 977 } | 977 } |
| 978 | 978 |
| 979 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 979 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
| 980 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 980 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
| 981 } | 981 } |
| 982 | 982 |
| 983 } // namespace blink | 983 } // namespace blink |
| OLD | NEW |