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

Side by Side Diff: third_party/WebKit/Source/core/dom/SecurityContext.h

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trim thingie Created 4 years, 10 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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 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 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void setShouldEnforceStrictMixedContentChecking(bool shouldEnforce) { m_enfo rceStrictMixedContentChecking = shouldEnforce; } 83 void setShouldEnforceStrictMixedContentChecking(bool shouldEnforce) { m_enfo rceStrictMixedContentChecking = shouldEnforce; }
84 bool shouldEnforceStrictMixedContentChecking() { return m_enforceStrictMixed ContentChecking; } 84 bool shouldEnforceStrictMixedContentChecking() { return m_enforceStrictMixed ContentChecking; }
85 85
86 protected: 86 protected:
87 SecurityContext(); 87 SecurityContext();
88 virtual ~SecurityContext(); 88 virtual ~SecurityContext();
89 89
90 void setContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy>) ; 90 void setContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy>) ;
91 91
92 void didFailToInitializeSecurityOrigin() { m_haveInitializedSecurityOrigin = false; }
93 bool haveInitializedSecurityOrigin() const { return m_haveInitializedSecurit yOrigin; } 92 bool haveInitializedSecurityOrigin() const { return m_haveInitializedSecurit yOrigin; }
94 93
95 private: 94 private:
96 bool m_haveInitializedSecurityOrigin; 95 bool m_haveInitializedSecurityOrigin;
97 RefPtr<SecurityOrigin> m_securityOrigin; 96 RefPtr<SecurityOrigin> m_securityOrigin;
98 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; 97 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy;
99 98
100 SandboxFlags m_sandboxFlags; 99 SandboxFlags m_sandboxFlags;
101 100
102 bool m_hostedInReservedIPRange; 101 bool m_hostedInReservedIPRange;
103 InsecureRequestsPolicy m_insecureRequestsPolicy; 102 InsecureRequestsPolicy m_insecureRequestsPolicy;
104 InsecureNavigationsSet m_insecureNavigationsToUpgrade; 103 InsecureNavigationsSet m_insecureNavigationsToUpgrade;
105 bool m_enforceStrictMixedContentChecking; 104 bool m_enforceStrictMixedContentChecking;
106 }; 105 };
107 106
108 } // namespace blink 107 } // namespace blink
109 108
110 #endif // SecurityContext_h 109 #endif // SecurityContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698