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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h

Issue 2046593003: Fix Document::firstPartyForCookies() for OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use the top frame in the remote case and add a test Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Schemes that can register a service worker. 94 // Schemes that can register a service worker.
95 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme); 95 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme);
96 static bool shouldTreatURLSchemeAsAllowingServiceWorkers(const String& schem e); 96 static bool shouldTreatURLSchemeAsAllowingServiceWorkers(const String& schem e);
97 97
98 // HTTP-like schemes that are treated as supporting the Fetch API. 98 // HTTP-like schemes that are treated as supporting the Fetch API.
99 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme); 99 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme);
100 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme); 100 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme);
101 101
102 // Schemes which override the first-/third-party checks on a Document. 102 // Schemes which override the first-/third-party checks on a Document.
103 static void registerURLSchemeAsFirstPartyWhenTopLevel(const String& scheme); 103 static void registerURLSchemeAsFirstPartyWhenTopLevel(const String& scheme);
104 static void removeURLSchemeAsFirstPartyWhenTopLevel(const String& scheme);
104 static bool shouldTreatURLSchemeAsFirstPartyWhenTopLevel(const String& schem e); 105 static bool shouldTreatURLSchemeAsFirstPartyWhenTopLevel(const String& schem e);
105 106
106 // Schemes that can be used in a referrer. 107 // Schemes that can be used in a referrer.
107 static void registerURLSchemeAsAllowedForReferrer(const String& scheme); 108 static void registerURLSchemeAsAllowedForReferrer(const String& scheme);
108 static void removeURLSchemeAsAllowedForReferrer(const String& scheme); 109 static void removeURLSchemeAsAllowedForReferrer(const String& scheme);
109 static bool shouldTreatURLSchemeAsAllowedForReferrer(const String& scheme); 110 static bool shouldTreatURLSchemeAsAllowedForReferrer(const String& scheme);
110 111
111 // Allow resources from some schemes to load on a page, regardless of its 112 // Allow resources from some schemes to load on a page, regardless of its
112 // Content Security Policy. 113 // Content Security Policy.
113 // This enum should be kept in sync with public/web/WebSecurityPolicy.h. 114 // This enum should be kept in sync with public/web/WebSecurityPolicy.h.
(...skipping 14 matching lines...) Expand all
128 static void registerURLSchemeBypassingSecureContextCheck(const String& schem e); 129 static void registerURLSchemeBypassingSecureContextCheck(const String& schem e);
129 static bool schemeShouldBypassSecureContextCheck(const String& scheme); 130 static bool schemeShouldBypassSecureContextCheck(const String& scheme);
130 131
131 private: 132 private:
132 static const URLSchemesSet& localSchemes(); 133 static const URLSchemesSet& localSchemes();
133 }; 134 };
134 135
135 } // namespace blink 136 } // namespace blink
136 137
137 #endif // SchemeRegistry_h 138 #endif // SchemeRegistry_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698