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

Side by Side Diff: Source/core/dom/RemoteSecurityContext.cpp

Issue 1096873002: Allow replicated origins to be updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "config.h" 5 #include "config.h"
6 #include "core/dom/RemoteSecurityContext.h" 6 #include "core/dom/RemoteSecurityContext.h"
7 7
8 #include "core/frame/csp/ContentSecurityPolicy.h" 8 #include "core/frame/csp/ContentSecurityPolicy.h"
9 #include "platform/weborigin/SecurityOrigin.h" 9 #include "platform/weborigin/SecurityOrigin.h"
10 10
(...skipping 16 matching lines...) Expand all
27 // grantUniversalAccess(). 27 // grantUniversalAccess().
28 } 28 }
29 29
30 PassRefPtr<RemoteSecurityContext> RemoteSecurityContext::create() 30 PassRefPtr<RemoteSecurityContext> RemoteSecurityContext::create()
31 { 31 {
32 return adoptRef(new RemoteSecurityContext()); 32 return adoptRef(new RemoteSecurityContext());
33 } 33 }
34 34
35 void RemoteSecurityContext::setReplicatedOrigin(PassRefPtr<SecurityOrigin> origi n) 35 void RemoteSecurityContext::setReplicatedOrigin(PassRefPtr<SecurityOrigin> origi n)
36 { 36 {
37 // FIXME: Currently, replicated security origins are passed only at
38 // RemoteFrame creation time. Eventually, this class will also need to
39 // handle origin updates to handle cases like setting document.domain, but
40 // for now, check that this is the first and only time we are setting the
41 // origin.
42 ASSERT(!haveInitializedSecurityOrigin());
43 setSecurityOrigin(origin); 37 setSecurityOrigin(origin);
44 } 38 }
45 39
46 40
47 } // namespace blink 41 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698