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

Side by Side Diff: Source/core/frame/Frame.h

Issue 520213002: Make SecurityContext available in RemoteFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review feedback from Daniel, expose securityOrigin() from WebFrame 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 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 27 matching lines...) Expand all
38 class ChromeClient; 38 class ChromeClient;
39 class Document; 39 class Document;
40 class FrameClient; 40 class FrameClient;
41 class FrameHost; 41 class FrameHost;
42 class FrameOwner; 42 class FrameOwner;
43 class HTMLFrameOwnerElement; 43 class HTMLFrameOwnerElement;
44 class DOMWindow; 44 class DOMWindow;
45 class KURL; 45 class KURL;
46 class Page; 46 class Page;
47 class RenderPart; 47 class RenderPart;
48 class SecurityContext;
48 class Settings; 49 class Settings;
49 class WebLayer; 50 class WebLayer;
50 51
51 struct Referrer; 52 struct Referrer;
52 53
53 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { 54 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> {
54 public: 55 public:
55 virtual ~Frame(); 56 virtual ~Frame();
56 57
57 virtual void trace(Visitor*); 58 virtual void trace(Visitor*);
(...skipping 20 matching lines...) Expand all
78 bool isMainFrame() const; 79 bool isMainFrame() const;
79 bool isLocalRoot() const; 80 bool isLocalRoot() const;
80 81
81 FrameOwner* owner() const; 82 FrameOwner* owner() const;
82 void setOwner(FrameOwner* owner) { m_owner = owner; } 83 void setOwner(FrameOwner* owner) { m_owner = owner; }
83 HTMLFrameOwnerElement* deprecatedLocalOwner() const; 84 HTMLFrameOwnerElement* deprecatedLocalOwner() const;
84 85
85 FrameTree& tree() const; 86 FrameTree& tree() const;
86 ChromeClient& chromeClient() const; 87 ChromeClient& chromeClient() const;
87 88
89 virtual SecurityContext* securityContext() const = 0;
90
88 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. 91 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame.
89 92
90 // FIXME: These should move to RemoteFrame when that is instantiated. 93 // FIXME: These should move to RemoteFrame when that is instantiated.
91 void setRemotePlatformLayer(WebLayer*); 94 void setRemotePlatformLayer(WebLayer*);
92 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } 95 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; }
93 96
94 Settings* settings() const; // can be null 97 Settings* settings() const; // can be null
95 98
96 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e. 99 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e.
97 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt 100 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt
(...skipping 28 matching lines...) Expand all
126 { 129 {
127 return m_treeNode; 130 return m_treeNode;
128 } 131 }
129 132
130 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 133 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
131 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 134 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
132 135
133 } // namespace blink 136 } // namespace blink
134 137
135 #endif // Frame_h 138 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698