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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 #include "core/editing/iterators/TextIterator.h" | 112 #include "core/editing/iterators/TextIterator.h" |
113 #include "core/editing/serializers/Serialization.h" | 113 #include "core/editing/serializers/Serialization.h" |
114 #include "core/editing/spellcheck/SpellChecker.h" | 114 #include "core/editing/spellcheck/SpellChecker.h" |
115 #include "core/fetch/ResourceFetcher.h" | 115 #include "core/fetch/ResourceFetcher.h" |
116 #include "core/fetch/SubstituteData.h" | 116 #include "core/fetch/SubstituteData.h" |
117 #include "core/frame/Console.h" | 117 #include "core/frame/Console.h" |
118 #include "core/frame/LocalDOMWindow.h" | 118 #include "core/frame/LocalDOMWindow.h" |
119 #include "core/frame/FrameHost.h" | 119 #include "core/frame/FrameHost.h" |
120 #include "core/frame/FrameView.h" | 120 #include "core/frame/FrameView.h" |
121 #include "core/frame/Settings.h" | 121 #include "core/frame/Settings.h" |
| 122 #include "core/frame/UseCounter.h" |
122 #include "core/html/HTMLAnchorElement.h" | 123 #include "core/html/HTMLAnchorElement.h" |
123 #include "core/html/HTMLCollection.h" | 124 #include "core/html/HTMLCollection.h" |
124 #include "core/html/HTMLFormElement.h" | 125 #include "core/html/HTMLFormElement.h" |
125 #include "core/html/HTMLFrameElementBase.h" | 126 #include "core/html/HTMLFrameElementBase.h" |
126 #include "core/html/HTMLFrameOwnerElement.h" | 127 #include "core/html/HTMLFrameOwnerElement.h" |
127 #include "core/html/HTMLHeadElement.h" | 128 #include "core/html/HTMLHeadElement.h" |
128 #include "core/html/HTMLImageElement.h" | 129 #include "core/html/HTMLImageElement.h" |
129 #include "core/html/HTMLInputElement.h" | 130 #include "core/html/HTMLInputElement.h" |
130 #include "core/html/HTMLLinkElement.h" | 131 #include "core/html/HTMLLinkElement.h" |
131 #include "core/html/PluginDocument.h" | 132 #include "core/html/PluginDocument.h" |
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2130 AppBannerController::willShowInstallBannerPrompt(requestId, client()->appBan
nerClient(), frame(), platforms, reply); | 2131 AppBannerController::willShowInstallBannerPrompt(requestId, client()->appBan
nerClient(), frame(), platforms, reply); |
2131 } | 2132 } |
2132 | 2133 |
2133 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const | 2134 void WebLocalFrameImpl::requestRunTask(WebSuspendableTask* task) const |
2134 { | 2135 { |
2135 ASSERT(frame()); | 2136 ASSERT(frame()); |
2136 ASSERT(frame()->document()); | 2137 ASSERT(frame()->document()); |
2137 frame()->document()->postSuspendableTask(WebSuspendableTaskWrapper::create(a
doptPtr(task))); | 2138 frame()->document()->postSuspendableTask(WebSuspendableTaskWrapper::create(a
doptPtr(task))); |
2138 } | 2139 } |
2139 | 2140 |
| 2141 void WebLocalFrameImpl::didCallAddSearchProvider() |
| 2142 { |
| 2143 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); |
| 2144 } |
| 2145 |
| 2146 void WebLocalFrameImpl::didCallIsSearchProviderInstalled() |
| 2147 { |
| 2148 UseCounter::count(frame(), UseCounter::ExternalIsSearchProviderInstalled); |
| 2149 } |
| 2150 |
2140 void WebLocalFrameImpl::willBeDetached() | 2151 void WebLocalFrameImpl::willBeDetached() |
2141 { | 2152 { |
2142 if (m_devToolsAgent) | 2153 if (m_devToolsAgent) |
2143 m_devToolsAgent->willBeDestroyed(); | 2154 m_devToolsAgent->willBeDestroyed(); |
2144 } | 2155 } |
2145 | 2156 |
2146 void WebLocalFrameImpl::willDetachParent() | 2157 void WebLocalFrameImpl::willDetachParent() |
2147 { | 2158 { |
2148 // Do not expect string scoping results from any frames that got detached | 2159 // Do not expect string scoping results from any frames that got detached |
2149 // in the middle of the operation. | 2160 // in the middle of the operation. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 } | 2203 } |
2193 | 2204 |
2194 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2205 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
2195 { | 2206 { |
2196 if (!frame()) | 2207 if (!frame()) |
2197 return WebSandboxFlags::None; | 2208 return WebSandboxFlags::None; |
2198 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2209 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2199 } | 2210 } |
2200 | 2211 |
2201 } // namespace blink | 2212 } // namespace blink |
OLD | NEW |