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

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameOwner.cpp

Issue 2877363002: Move more classes over to use WebLocalFrameBase instead of WebLocalFrameImpl. (Closed)
Patch Set: Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #include "web/RemoteFrameOwner.h" 5 #include "web/RemoteFrameOwner.h"
6 6
7 #include "core/frame/LocalFrame.h" 7 #include "core/frame/LocalFrame.h"
8 #include "core/frame/WebLocalFrameBase.h"
8 #include "public/web/WebFrameClient.h" 9 #include "public/web/WebFrameClient.h"
9 #include "web/WebLocalFrameImpl.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 RemoteFrameOwner::RemoteFrameOwner( 13 RemoteFrameOwner::RemoteFrameOwner(
14 SandboxFlags flags, 14 SandboxFlags flags,
15 const WebParsedFeaturePolicy& container_policy, 15 const WebParsedFeaturePolicy& container_policy,
16 const WebFrameOwnerProperties& frame_owner_properties) 16 const WebFrameOwnerProperties& frame_owner_properties)
17 : sandbox_flags_(flags), 17 : sandbox_flags_(flags),
18 browsing_context_container_name_( 18 browsing_context_container_name_(
19 static_cast<String>(frame_owner_properties.name)), 19 static_cast<String>(frame_owner_properties.name)),
(...skipping 20 matching lines...) Expand all
40 void RemoteFrameOwner::SetContentFrame(Frame& frame) { 40 void RemoteFrameOwner::SetContentFrame(Frame& frame) {
41 frame_ = &frame; 41 frame_ = &frame;
42 } 42 }
43 43
44 void RemoteFrameOwner::ClearContentFrame() { 44 void RemoteFrameOwner::ClearContentFrame() {
45 DCHECK_EQ(frame_->Owner(), this); 45 DCHECK_EQ(frame_->Owner(), this);
46 frame_ = nullptr; 46 frame_ = nullptr;
47 } 47 }
48 48
49 void RemoteFrameOwner::DispatchLoad() { 49 void RemoteFrameOwner::DispatchLoad() {
50 WebLocalFrameImpl* web_frame = 50 WebLocalFrameBase* web_frame =
51 WebLocalFrameImpl::FromFrame(ToLocalFrame(*frame_)); 51 WebLocalFrameBase::FromFrame(ToLocalFrame(*frame_));
52 web_frame->Client()->DispatchLoad(); 52 web_frame->Client()->DispatchLoad();
53 } 53 }
54 54
55 } // namespace blink 55 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.cpp ('k') | third_party/WebKit/Source/web/StorageQuotaClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698