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

Side by Side Diff: public/web/WebFrame.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // For a WebFrame with contents being rendered in another process, this 149 // For a WebFrame with contents being rendered in another process, this
150 // sets a layer for use by the in-process compositor. WebLayer should be 150 // sets a layer for use by the in-process compositor. WebLayer should be
151 // null if the content is being rendered in the current process. 151 // null if the content is being rendered in the current process.
152 virtual void setRemoteWebLayer(WebLayer*) = 0; 152 virtual void setRemoteWebLayer(WebLayer*) = 0;
153 153
154 // Initializes the various client interfaces. 154 // Initializes the various client interfaces.
155 virtual void setPermissionClient(WebPermissionClient*) = 0; 155 virtual void setPermissionClient(WebPermissionClient*) = 0;
156 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient *) = 0; 156 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient *) = 0;
157 157
158 // The security origin of this frame.
159 virtual WebSecurityOrigin securityOrigin() const = 0;
dcheng 2014/11/18 23:31:40 Do we need to call this on remote frames? If not,
alexmos 2014/11/19 00:33:04 My RenderView test (see *.OriginReplicationForSwap
160
158 // Geometry ----------------------------------------------------------- 161 // Geometry -----------------------------------------------------------
159 162
160 // NOTE: These routines do not force page layout so their results may 163 // NOTE: These routines do not force page layout so their results may
161 // not be accurate if the page layout is out-of-date. 164 // not be accurate if the page layout is out-of-date.
162 165
163 // If set to false, do not draw scrollbars on this frame's view. 166 // If set to false, do not draw scrollbars on this frame's view.
164 virtual void setCanHaveScrollbars(bool) = 0; 167 virtual void setCanHaveScrollbars(bool) = 0;
165 168
166 // The scroll offset from the top-left corner of the frame in pixels. 169 // The scroll offset from the top-left corner of the frame in pixels.
167 virtual WebSize scrollOffset() const = 0; 170 virtual WebSize scrollOffset() const = 0;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 698 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
696 }; 699 };
697 700
698 #if BLINK_IMPLEMENTATION 701 #if BLINK_IMPLEMENTATION
699 Frame* toCoreFrame(const WebFrame*); 702 Frame* toCoreFrame(const WebFrame*);
700 #endif 703 #endif
701 704
702 } // namespace blink 705 } // namespace blink
703 706
704 #endif 707 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698