| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 #include "web/WebPluginContainerImpl.h" | 101 #include "web/WebPluginContainerImpl.h" |
| 102 #include "web/WebPluginLoadObserver.h" | 102 #include "web/WebPluginLoadObserver.h" |
| 103 #include "web/WebViewImpl.h" | 103 #include "web/WebViewImpl.h" |
| 104 #include "wtf/StringExtras.h" | 104 #include "wtf/StringExtras.h" |
| 105 #include "wtf/text/CString.h" | 105 #include "wtf/text/CString.h" |
| 106 #include "wtf/text/WTFString.h" | 106 #include "wtf/text/WTFString.h" |
| 107 #include <v8.h> | 107 #include <v8.h> |
| 108 | 108 |
| 109 namespace blink { | 109 namespace blink { |
| 110 | 110 |
| 111 namespace { |
| 112 |
| 113 Frame* toCoreFrame(WebFrame* frame) |
| 114 { |
| 115 return frame ? frame->toImplBase()->frame() : nullptr; |
| 116 } |
| 117 |
| 118 } // namespace |
| 119 |
| 111 FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame) | 120 FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame) |
| 112 : m_webFrame(frame) | 121 : m_webFrame(frame) |
| 113 { | 122 { |
| 114 } | 123 } |
| 115 | 124 |
| 116 PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> FrameLoaderClientImpl::create(WebL
ocalFrameImpl* frame) | 125 PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> FrameLoaderClientImpl::create(WebL
ocalFrameImpl* frame) |
| 117 { | 126 { |
| 118 return adoptPtrWillBeNoop(new FrameLoaderClientImpl(frame)); | 127 return adoptPtrWillBeNoop(new FrameLoaderClientImpl(frame)); |
| 119 } | 128 } |
| 120 | 129 |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 | 994 |
| 986 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 995 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 987 { | 996 { |
| 988 if (m_webFrame->client()) { | 997 if (m_webFrame->client()) { |
| 989 m_webFrame->client()->suddenTerminationDisablerChanged( | 998 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 990 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 999 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 991 } | 1000 } |
| 992 } | 1001 } |
| 993 | 1002 |
| 994 } // namespace blink | 1003 } // namespace blink |
| OLD | NEW |