| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 if (!m_inspectorOverlay) | 2035 if (!m_inspectorOverlay) |
| 2036 m_inspectorOverlay = InspectorOverlayImpl::createEmpty(); | 2036 m_inspectorOverlay = InspectorOverlayImpl::createEmpty(); |
| 2037 return m_inspectorOverlay.get(); | 2037 return m_inspectorOverlay.get(); |
| 2038 } | 2038 } |
| 2039 | 2039 |
| 2040 WebDevToolsAgent* WebLocalFrameImpl::devToolsAgent() | 2040 WebDevToolsAgent* WebLocalFrameImpl::devToolsAgent() |
| 2041 { | 2041 { |
| 2042 return m_devToolsAgent.get(); | 2042 return m_devToolsAgent.get(); |
| 2043 } | 2043 } |
| 2044 | 2044 |
| 2045 void WebLocalFrameImpl::sendPings(const WebNode& linkNode, const WebURL& destina
tionURL) | 2045 void WebLocalFrameImpl::sendPings(const WebNode& contextNode, const WebURL& dest
inationURL) |
| 2046 { | 2046 { |
| 2047 ASSERT(frame()); | 2047 ASSERT(frame()); |
| 2048 const Node* node = linkNode.constUnwrap<Node>(); | 2048 Element* anchor = contextNode.constUnwrap<Node>()->enclosingLinkEventParentO
rSelf(); |
| 2049 if (isHTMLAnchorElement(node)) | 2049 if (isHTMLAnchorElement(anchor)) |
| 2050 toHTMLAnchorElement(node)->sendPings(destinationURL); | 2050 toHTMLAnchorElement(anchor)->sendPings(destinationURL); |
| 2051 } | 2051 } |
| 2052 | 2052 |
| 2053 WebURLRequest WebLocalFrameImpl::requestFromHistoryItem(const WebHistoryItem& it
em, | 2053 WebURLRequest WebLocalFrameImpl::requestFromHistoryItem(const WebHistoryItem& it
em, |
| 2054 WebURLRequest::CachePolicy cachePolicy) const | 2054 WebURLRequest::CachePolicy cachePolicy) const |
| 2055 { | 2055 { |
| 2056 RefPtrWillBeRawPtr<HistoryItem> historyItem = PassRefPtrWillBeRawPtr<History
Item>(item); | 2056 RefPtrWillBeRawPtr<HistoryItem> historyItem = PassRefPtrWillBeRawPtr<History
Item>(item); |
| 2057 ResourceRequest request = FrameLoader::resourceRequestFromHistoryItem( | 2057 ResourceRequest request = FrameLoader::resourceRequestFromHistoryItem( |
| 2058 historyItem.get(), static_cast<ResourceRequestCachePolicy>(cachePolicy))
; | 2058 historyItem.get(), static_cast<ResourceRequestCachePolicy>(cachePolicy))
; |
| 2059 return WrappedResourceRequest(request); | 2059 return WrappedResourceRequest(request); |
| 2060 } | 2060 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 } | 2193 } |
| 2194 | 2194 |
| 2195 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2195 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2196 { | 2196 { |
| 2197 if (!frame()) | 2197 if (!frame()) |
| 2198 return WebSandboxFlags::None; | 2198 return WebSandboxFlags::None; |
| 2199 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2199 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 } // namespace blink | 2202 } // namespace blink |
| OLD | NEW |