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

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

Issue 1413233005: tracing: Report ResourceClients and the reason for not deletable for web-caches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflected haraken's comments. Created 5 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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, unsigned length) override;
106 void notifyFinished(Resource*) override; 106 void notifyFinished(Resource*) override;
107 String debugName() const override { return "HTMLImportLoader"; }
107 108
108 // DocumentParserClient 109 // DocumentParserClient
109 110
110 // Called after document parse is complete after DOMContentLoaded was dispat ched. 111 // Called after document parse is complete after DOMContentLoaded was dispat ched.
111 void notifyParserStopped() override; 112 void notifyParserStopped() override;
112 113
113 State startWritingAndParsing(const ResourceResponse&); 114 State startWritingAndParsing(const ResourceResponse&);
114 State finishWriting(); 115 State finishWriting();
115 State finishParsing(); 116 State finishParsing();
116 State finishLoading(); 117 State finishLoading();
117 118
118 void setState(State); 119 void setState(State);
119 void didFinishLoading(); 120 void didFinishLoading();
120 bool hasPendingResources() const; 121 bool hasPendingResources() const;
121 #if !ENABLE(OILPAN) 122 #if !ENABLE(OILPAN)
122 void clear(); 123 void clear();
123 #endif 124 #endif
124 125
125 RawPtrWillBeMember<HTMLImportsController> m_controller; 126 RawPtrWillBeMember<HTMLImportsController> m_controller;
126 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; 127 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports;
127 State m_state; 128 State m_state;
128 RefPtrWillBeMember<Document> m_document; 129 RefPtrWillBeMember<Document> m_document;
129 RefPtrWillBeMember<DocumentWriter> m_writer; 130 RefPtrWillBeMember<DocumentWriter> m_writer;
130 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; 131 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 #endif // HTMLImportLoader_h 136 #endif // HTMLImportLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/TextDocument.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698