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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1149793002: Detach old frame on WebFrame::swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: print Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 struct FrameMsg_TextTrackSettings_Params; 48 struct FrameMsg_TextTrackSettings_Params;
49 49
50 namespace blink { 50 namespace blink {
51 class WebGeolocationClient; 51 class WebGeolocationClient;
52 class WebMouseEvent; 52 class WebMouseEvent;
53 class WebContentDecryptionModule; 53 class WebContentDecryptionModule;
54 class WebMediaPlayer; 54 class WebMediaPlayer;
55 class WebPresentationClient; 55 class WebPresentationClient;
56 class WebPushClient; 56 class WebPushClient;
57 class WebSecurityOrigin; 57 class WebSecurityOrigin;
58 enum class WebDetachReason;
dcheng 2015/06/01 21:15:54 You shouldn't need to forward declare this, since
58 struct WebCompositionUnderline; 59 struct WebCompositionUnderline;
59 struct WebContextMenuData; 60 struct WebContextMenuData;
60 struct WebCursorInfo; 61 struct WebCursorInfo;
61 } 62 }
62 63
63 namespace gfx { 64 namespace gfx {
64 class Point; 65 class Point;
65 class Range; 66 class Range;
66 class Rect; 67 class Rect;
67 } 68 }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 virtual blink::WebFrame* createChildFrame( 360 virtual blink::WebFrame* createChildFrame(
360 blink::WebLocalFrame* parent, 361 blink::WebLocalFrame* parent,
361 blink::WebTreeScopeType scope, 362 blink::WebTreeScopeType scope,
362 const blink::WebString& name, 363 const blink::WebString& name,
363 blink::WebSandboxFlags sandboxFlags); 364 blink::WebSandboxFlags sandboxFlags);
364 virtual blink::WebFrame* createChildFrame( 365 virtual blink::WebFrame* createChildFrame(
365 blink::WebLocalFrame* parent, 366 blink::WebLocalFrame* parent,
366 const blink::WebString& name, 367 const blink::WebString& name,
367 blink::WebSandboxFlags sandboxFlags); 368 blink::WebSandboxFlags sandboxFlags);
368 virtual void didDisownOpener(blink::WebLocalFrame* frame); 369 virtual void didDisownOpener(blink::WebLocalFrame* frame);
370 // TODO(lfg): Remove this method once the blink patch lands.
369 virtual void frameDetached(blink::WebFrame* frame); 371 virtual void frameDetached(blink::WebFrame* frame);
372 virtual void frameDetached(blink::WebFrame* frame,
373 blink::WebDetachReason reason);
370 virtual void frameFocused(); 374 virtual void frameFocused();
371 virtual void willClose(blink::WebFrame* frame); 375 virtual void willClose(blink::WebFrame* frame);
372 virtual void didChangeName(blink::WebLocalFrame* frame, 376 virtual void didChangeName(blink::WebLocalFrame* frame,
373 const blink::WebString& name); 377 const blink::WebString& name);
374 virtual void didChangeSandboxFlags(blink::WebFrame* child_frame, 378 virtual void didChangeSandboxFlags(blink::WebFrame* child_frame,
375 blink::WebSandboxFlags flags); 379 blink::WebSandboxFlags flags);
376 virtual void didMatchCSS( 380 virtual void didMatchCSS(
377 blink::WebLocalFrame* frame, 381 blink::WebLocalFrame* frame,
378 const blink::WebVector<blink::WebString>& newly_matching_selectors, 382 const blink::WebVector<blink::WebString>& newly_matching_selectors,
379 const blink::WebVector<blink::WebString>& stopped_matching_selectors); 383 const blink::WebVector<blink::WebString>& stopped_matching_selectors);
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 #endif 972 #endif
969 973
970 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 974 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
971 975
972 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 976 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
973 }; 977 };
974 978
975 } // namespace content 979 } // namespace content
976 980
977 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 981 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698