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

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

Issue 520213002: Make SecurityContext available in RemoteFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); 193 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>);
194 RemoteFrame* frame() const { return m_frame.get(); } 194 RemoteFrame* frame() const { return m_frame.get(); }
195 195
196 WebRemoteFrameClient* client() const { return m_client; } 196 WebRemoteFrameClient* client() const { return m_client; }
197 197
198 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); 198 static WebRemoteFrameImpl* fromFrame(RemoteFrame&);
199 199
200 virtual void initializeFromFrame(WebLocalFrame*) const override; 200 virtual void initializeFromFrame(WebLocalFrame*) const override;
201 201
202 virtual void setReplicatedOrigin(const WebURL&, bool isUnique) const overrid e;
203
202 #if ENABLE(OILPAN) 204 #if ENABLE(OILPAN)
203 void trace(Visitor*); 205 void trace(Visitor*);
204 #endif 206 #endif
205 207
206 private: 208 private:
207 RemoteFrameClientImpl m_frameClient; 209 RemoteFrameClientImpl m_frameClient;
208 RefPtrWillBeMember<RemoteFrame> m_frame; 210 RefPtrWillBeMember<RemoteFrame> m_frame;
209 WebRemoteFrameClient* m_client; 211 WebRemoteFrameClient* m_client;
210 212
211 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi ldren; 213 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi ldren;
212 214
213 #if ENABLE(OILPAN) 215 #if ENABLE(OILPAN)
214 // Oilpan: to provide the guarantee of having the frame live until 216 // Oilpan: to provide the guarantee of having the frame live until
215 // close() is called, an instance keep a self-persistent. It is 217 // close() is called, an instance keep a self-persistent. It is
216 // cleared upon calling close(). This avoids having to assume that 218 // cleared upon calling close(). This avoids having to assume that
217 // an embedder's WebFrame references are all discovered via thread 219 // an embedder's WebFrame references are all discovered via thread
218 // state (stack, registers) should an Oilpan GC strike while we're 220 // state (stack, registers) should an Oilpan GC strike while we're
219 // in the process of detaching. 221 // in the process of detaching.
220 GC_PLUGIN_IGNORE("340522") 222 GC_PLUGIN_IGNORE("340522")
221 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; 223 Persistent<WebRemoteFrameImpl> m_selfKeepAlive;
222 #endif 224 #endif
223 }; 225 };
224 226
225 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 227 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
226 228
227 } // namespace blink 229 } // namespace blink
228 230
229 #endif // WebRemoteFrameImpl_h 231 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698