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

Side by Side Diff: Source/web/WebSecurityOrigin.cpp

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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 WebSecurityOrigin WebSecurityOrigin::createFromDatabaseIdentifier(const WebStrin g& databaseIdentifier) 46 WebSecurityOrigin WebSecurityOrigin::createFromDatabaseIdentifier(const WebStrin g& databaseIdentifier)
47 { 47 {
48 return WebSecurityOrigin(createSecurityOriginFromDatabaseIdentifier(database Identifier)); 48 return WebSecurityOrigin(createSecurityOriginFromDatabaseIdentifier(database Identifier));
49 } 49 }
50 50
51 WebSecurityOrigin WebSecurityOrigin::createFromString(const WebString& origin) 51 WebSecurityOrigin WebSecurityOrigin::createFromString(const WebString& origin)
52 { 52 {
53 return WebSecurityOrigin(SecurityOrigin::createFromString(origin)); 53 return WebSecurityOrigin(SecurityOrigin::createFromString(origin));
54 } 54 }
55 55
56 WebSecurityOrigin WebSecurityOrigin::createUnique()
57 {
58 return WebSecurityOrigin(SecurityOrigin::createUnique());
59 }
60
56 WebSecurityOrigin WebSecurityOrigin::create(const WebURL& url) 61 WebSecurityOrigin WebSecurityOrigin::create(const WebURL& url)
57 { 62 {
58 return WebSecurityOrigin(SecurityOrigin::create(url)); 63 return WebSecurityOrigin(SecurityOrigin::create(url));
59 } 64 }
60 65
61 void WebSecurityOrigin::reset() 66 void WebSecurityOrigin::reset()
62 { 67 {
63 assign(0); 68 assign(0);
64 } 69 }
65 70
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 m_private->deref(); 168 m_private->deref();
164 m_private = p; 169 m_private = p;
165 } 170 }
166 171
167 void WebSecurityOrigin::grantLoadLocalResources() const 172 void WebSecurityOrigin::grantLoadLocalResources() const
168 { 173 {
169 get()->grantLoadLocalResources(); 174 get()->grantLoadLocalResources();
170 } 175 }
171 176
172 } // namespace blink 177 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698