23 #ifndef NET_INSTAWEB_AUTOMATIC_PUBLIC_HTML_DETECTOR_H_
24 #define NET_INSTAWEB_AUTOMATIC_PUBLIC_HTML_DETECTOR_H_
26 #include "base/logging.h"
27 #include "pagespeed/kernel/base/basictypes.h"
28 #include "pagespeed/kernel/base/string.h"
29 #include "pagespeed/kernel/base/string_util.h"
31 namespace net_instaweb {
76 DCHECK(already_decided_);
77 return probable_html_;
92 bool already_decided_;
Definition: html_detector.h:54
void ReleaseBuffered(GoogleString *out_buffer)
void ForceDecision(bool is_html)
bool probable_html() const
Precondition: already_decided() true (or ConsiderInput returning true).
Definition: html_detector.h:75
bool already_decided() const
Definition: html_detector.h:72
bool ConsiderInput(const StringPiece &data)