Page Speed Optimization Libraries  1.5.27.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::LogRecord Class Reference

Simple AbstractLogRecord implementation which owns a LoggingInfo protobuf. More...

#include "log_record.h"

Inheritance diagram for net_instaweb::LogRecord:
net_instaweb::AbstractLogRecord net_instaweb::CopyOnWriteLogRecord

List of all members.

Public Member Functions

 LogRecord (AbstractMutex *mutex)
LoggingInfo * logging_info ()
virtual void SetImageStats (int num_img_tags, int num_inlined_img_tags, int num_critical_images_used)
 Sets image related statistics.
virtual void SetResourceCounts (int num_external_css, int num_scripts)
 Sets the number of external resources on an HTML page.
bool WriteLogImpl ()

Detailed Description

Simple AbstractLogRecord implementation which owns a LoggingInfo protobuf.


Member Function Documentation

LoggingInfo* net_instaweb::LogRecord::logging_info ( ) [inline, virtual]
Todo:
TODO(gee): Deprecate raw access to proto. Return the LoggingInfo proto wrapped by this class. Calling code must guard any reads and writes to this using mutex().

Implements net_instaweb::AbstractLogRecord.

bool net_instaweb::LogRecord::WriteLogImpl ( ) [inline, virtual]

Implements writing a log, base implementation is a no-op. Returns false if writing failed.

Implements net_instaweb::AbstractLogRecord.

Reimplemented in net_instaweb::CopyOnWriteLogRecord.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines