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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.h

Issue 1407163002: Add feature use counting for window.external.AddSearchProvider (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: usecounter Created 5 years, 2 months 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/FrameOwner.h" 8 #include "core/frame/FrameOwner.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "public/web/WebRemoteFrame.h" 10 #include "public/web/WebRemoteFrame.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void dispatchMessageEventWithOriginCheck( 157 void dispatchMessageEventWithOriginCheck(
158 const WebSecurityOrigin& intendedTargetOrigin, 158 const WebSecurityOrigin& intendedTargetOrigin,
159 const WebDOMEvent&) override; 159 const WebDOMEvent&) override;
160 160
161 WebString contentAsText(size_t maxChars) const override; 161 WebString contentAsText(size_t maxChars) const override;
162 WebString contentAsMarkup() const override; 162 WebString contentAsMarkup() const override;
163 WebString layoutTreeAsText(LayoutAsTextControls toShow = LayoutAsTextNormal) const override; 163 WebString layoutTreeAsText(LayoutAsTextControls toShow = LayoutAsTextNormal) const override;
164 WebString markerTextForListItem(const WebElement&) const override; 164 WebString markerTextForListItem(const WebElement&) const override;
165 WebRect selectionBoundsRect() const override; 165 WebRect selectionBoundsRect() const override;
166 166
167 void countFeatureUse(Feature) override;
168
167 bool selectionStartHasSpellingMarkerFor(int from, int length) const override ; 169 bool selectionStartHasSpellingMarkerFor(int from, int length) const override ;
168 WebString layerTreeAsText(bool showDebugInfo = false) const override; 170 WebString layerTreeAsText(bool showDebugInfo = false) const override;
169 171
170 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, Web SandboxFlags, WebFrameClient*, WebFrame* previousSibling) override; 172 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, Web SandboxFlags, WebFrameClient*, WebFrame* previousSibling) override;
171 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, W ebSandboxFlags, WebRemoteFrameClient*) override; 173 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, W ebSandboxFlags, WebRemoteFrameClient*) override;
172 174
173 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); 175 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name);
174 176
175 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); 177 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>);
176 RemoteFrame* frame() const { return m_frame.get(); } 178 RemoteFrame* frame() const { return m_frame.get(); }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // cleared upon close(). 210 // cleared upon close().
209 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 211 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
210 #endif 212 #endif
211 }; 213 };
212 214
213 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 215 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
214 216
215 } // namespace blink 217 } // namespace blink
216 218
217 #endif // WebRemoteFrameImpl_h 219 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698