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

Side by Side Diff: third_party/WebKit/Source/core/html/imports/HTMLImportLoader.h

Issue 1571233003: Fix errors caused by unsafe conversions to/from size_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved ALLOW_NUMERIC_ARG_TYPES_PROMOTABLE_TO Created 4 years, 11 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 PassRefPtrWillBeRawPtr<CustomElementSyncMicrotaskQueue> microtaskQueue() con st; 96 PassRefPtrWillBeRawPtr<CustomElementSyncMicrotaskQueue> microtaskQueue() con st;
97 97
98 DECLARE_VIRTUAL_TRACE(); 98 DECLARE_VIRTUAL_TRACE();
99 99
100 private: 100 private:
101 HTMLImportLoader(HTMLImportsController*); 101 HTMLImportLoader(HTMLImportsController*);
102 102
103 // RawResourceClient 103 // RawResourceClient
104 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) override; 104 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) override;
105 void dataReceived(Resource*, const char* data, unsigned length) override; 105 void dataReceived(Resource*, const char* data, size_t length) override;
106 void notifyFinished(Resource*) override; 106 void notifyFinished(Resource*) override;
107 String debugName() const override { return "HTMLImportLoader"; } 107 String debugName() const override { return "HTMLImportLoader"; }
108 108
109 // DocumentParserClient 109 // DocumentParserClient
110 110
111 // Called after document parse is complete after DOMContentLoaded was dispat ched. 111 // Called after document parse is complete after DOMContentLoaded was dispat ched.
112 void notifyParserStopped() override; 112 void notifyParserStopped() override;
113 113
114 State startWritingAndParsing(const ResourceResponse&); 114 State startWritingAndParsing(const ResourceResponse&);
115 State finishWriting(); 115 State finishWriting();
(...skipping 11 matching lines...) Expand all
127 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; 127 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports;
128 State m_state; 128 State m_state;
129 RefPtrWillBeMember<Document> m_document; 129 RefPtrWillBeMember<Document> m_document;
130 RefPtrWillBeMember<DocumentWriter> m_writer; 130 RefPtrWillBeMember<DocumentWriter> m_writer;
131 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; 131 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // HTMLImportLoader_h 136 #endif // HTMLImportLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698