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

Side by Side Diff: third_party/WebKit/Source/core/dom/PendingScript.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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void watchForLoad(ScriptResourceClient*); 67 void watchForLoad(ScriptResourceClient*);
68 void stopWatchingForLoad(ScriptResourceClient*); 68 void stopWatchingForLoad(ScriptResourceClient*);
69 69
70 Element* element() const { return m_element.get(); } 70 Element* element() const { return m_element.get(); }
71 void setElement(Element*); 71 void setElement(Element*);
72 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear(); 72 PassRefPtrWillBeRawPtr<Element> releaseElementAndClear();
73 73
74 void setScriptResource(ScriptResource*); 74 void setScriptResource(ScriptResource*);
75 75
76 virtual void notifyFinished(Resource*); 76 void notifyFinished(Resource*) override;
77 virtual void notifyAppendData(ScriptResource*); 77 String debugName() const override { return "PendingScript"; }
78 void notifyAppendData(ScriptResource*) override;
78 79
79 DECLARE_TRACE(); 80 DECLARE_TRACE();
80 81
81 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con st; 82 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con st;
82 83
83 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); 84 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>);
84 85
85 bool isReady() const; 86 bool isReady() const;
86 87
87 private: 88 private:
88 bool m_watchingForLoad; 89 bool m_watchingForLoad;
89 RefPtrWillBeMember<Element> m_element; 90 RefPtrWillBeMember<Element> m_element;
90 TextPosition m_startingPosition; // Only used for inline script tags. 91 TextPosition m_startingPosition; // Only used for inline script tags.
91 bool m_integrityFailure; 92 bool m_integrityFailure;
92 93
93 RefPtrWillBeMember<ScriptStreamer> m_streamer; 94 RefPtrWillBeMember<ScriptStreamer> m_streamer;
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif // PendingScript_h 99 #endif // PendingScript_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleImport.h ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698