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

Side by Side Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void process(const String& href, const String& charset); 91 void process(const String& href, const String& charset);
92 92
93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override; 93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override;
94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override; 94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override;
95 95
96 bool sheetLoaded() override; 96 bool sheetLoaded() override;
97 97
98 void parseStyleSheet(const String& sheet); 98 void parseStyleSheet(const String& sheet);
99 void clearSheet(); 99 void clearSheet();
100 100
101 String debugName() const override { return "ProcessingInstruction"; }
102
101 String m_target; 103 String m_target;
102 String m_localHref; 104 String m_localHref;
103 String m_title; 105 String m_title;
104 String m_media; 106 String m_media;
105 RefPtrWillBeMember<StyleSheet> m_sheet; 107 RefPtrWillBeMember<StyleSheet> m_sheet;
106 bool m_loading; 108 bool m_loading;
107 bool m_alternate; 109 bool m_alternate;
108 bool m_createdByParser; 110 bool m_createdByParser;
109 bool m_isCSS; 111 bool m_isCSS;
110 bool m_isXSL; 112 bool m_isXSL;
111 113
112 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT; 114 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT;
113 }; 115 };
114 116
115 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 117 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
116 118
117 inline bool isXSLStyleSheet(const Node& node) 119 inline bool isXSLStyleSheet(const Node& node)
118 { 120 {
119 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL(); 121 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL();
120 } 122 }
121 123
122 } // namespace blink 124 } // namespace blink
123 125
124 #endif // ProcessingInstruction_h 126 #endif // ProcessingInstruction_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/PendingScript.h ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698