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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index 18e8cfe6ff07b6f8726becc1a80c088d35a553e8..303b8a1508f614d251c80883b06b2366e9083400 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -63,11 +63,10 @@ class SecurityOrigin;
typedef int SandboxFlags;
typedef Vector<OwnPtr<CSPDirectiveList>> CSPDirectiveListVector;
-typedef WillBeHeapVector<RefPtrWillBeMember<ConsoleMessage>> ConsoleMessageVector;
+typedef HeapVector<Member<ConsoleMessage>> ConsoleMessageVector;
typedef std::pair<String, ContentSecurityPolicyHeaderType> CSPHeaderAndType;
-class CORE_EXPORT ContentSecurityPolicy : public RefCountedWillBeGarbageCollectedFinalized<ContentSecurityPolicy> {
- USING_FAST_MALLOC_WILL_BE_REMOVED(ContentSecurityPolicy);
+class CORE_EXPORT ContentSecurityPolicy : public GarbageCollectedFinalized<ContentSecurityPolicy> {
public:
// CSP Level 1 Directives
static const char ConnectSrc[];
@@ -133,9 +132,9 @@ public:
URLViolation
};
- static PassRefPtrWillBeRawPtr<ContentSecurityPolicy> create()
+ static RawPtr<ContentSecurityPolicy> create()
{
- return adoptRefWillBeNoop(new ContentSecurityPolicy());
+ return (new ContentSecurityPolicy());
}
~ContentSecurityPolicy();
DECLARE_TRACE();
@@ -214,7 +213,7 @@ public:
// If a frame is passed in, the message will be logged to its active document's console.
// Otherwise, the message will be logged to this object's |m_executionContext|.
- void logToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>, LocalFrame* = nullptr);
+ void logToConsole(RawPtr<ConsoleMessage>, LocalFrame* = nullptr);
void reportDirectiveAsSourceExpression(const String& directiveName, const String& sourceExpression);
void reportDuplicateDirective(const String&);
@@ -287,7 +286,7 @@ private:
bool shouldSendViolationReport(const String&) const;
void didSendViolationReport(const String&);
- RawPtrWillBeMember<ExecutionContext> m_executionContext;
+ Member<ExecutionContext> m_executionContext;
bool m_overrideInlineStyleAllowed;
CSPDirectiveListVector m_policies;
ConsoleMessageVector m_consoleMessages;

Powered by Google App Engine
This is Rietveld 408576698