Page Speed Optimization Libraries
1.5.27.2
|
#include "rewrite_options.h"
Public Member Functions | |
FuriousSpec (const StringPiece &spec, RewriteOptions *options, MessageHandler *handler) | |
FuriousSpec (int id) | |
virtual FuriousSpec * | Clone () |
Return a FuriousSpec with all the same information as this one. | |
bool | is_valid () const |
int | id () const |
Accessors. | |
int | percent () const |
GoogleString | ga_id () const |
int | slot () const |
RewriteLevel | rewrite_level () const |
FilterSet | enabled_filters () const |
FilterSet | disabled_filters () const |
OptionSet | filter_options () const |
int64 | css_inline_max_bytes () const |
int64 | js_inline_max_bytes () const |
int64 | image_inline_max_bytes () const |
bool | use_default () const |
Protected Member Functions | |
void | Merge (const FuriousSpec &spec) |
This class is a separate subset of options for running a furious experiment. These options can be specified by a spec string that looks like: "id=<number greater than 0>;level=<rewrite level>="">;enabled= <comma-separated-list of filters to enable>;disabled= <comma-separated-list of filters to disable>;css_inline_threshold= <max size="" of="" css="" to="" inline>="">;image_inline_threshold=<max size="" of="" image="" to="" inline>="">;js_inline_threshold=<max size="" of="" js="" to="" inline>="">.
net_instaweb::RewriteOptions::FuriousSpec::FuriousSpec | ( | const StringPiece & | spec, |
RewriteOptions * | options, | ||
MessageHandler * | handler | ||
) |
Creates a FuriousSpec parsed from spec. If spec doesn't have an id, then id_ will be set to furious::kFuriousNotSet. These FuriousSpecs will then be rejected by AddFuriousSpec().
net_instaweb::RewriteOptions::FuriousSpec::FuriousSpec | ( | int | id | ) | [explicit] |
Creates a FuriousSpec with id_=id. All other variables are initialized to 0. This is primarily used for setting up the control and for cloning.
void net_instaweb::RewriteOptions::FuriousSpec::Merge | ( | const FuriousSpec & | spec | ) | [protected] |
Merges a spec into this. This follows the same semantics as RewriteOptions. Specifically, filter/options list get unioned, and vars get overwritten, except ID.