agent/browser/ie/pagetest/PagetestReporting.cpp
// Helper that populates the set of Page Speed rules used by Page Test.

Helper that populates the set of Page Speed rules used by Page Test.
Helper that populates the set of Page Speed rules used by Page Test .
void PopulatePageSpeedRules(std::vector<pagespeed::Rule*>* rules)
{
	const bool save_optimized_content = false;
	pagespeed::rule_provider::AppendPageSpeedRules(
		save_optimized_content,
		rules);
	std::vector<std::string> incompatible_rule_names;
	pagespeed::InputCapabilities capabilities(
		pagespeed::InputCapabilities::DOM |
		pagespeed::InputCapabilities::ONLOAD |
		pagespeed::InputCapabilities::PARENT_CHILD_RESOURCE_MAP |
		pagespeed::InputCapabilities::REQUEST_HEADERS |
		pagespeed::InputCapabilities::RESPONSE_BODY |
		pagespeed::InputCapabilities::REQUEST_START_TIMES);
	pagespeed::rule_provider::RemoveIncompatibleRules(
		rules,
		&incompatible_rule_names,
		capabilities);
	if (!incompatible_rule_names.empty())
	{
		ATLTRACE(_T("[Pagetest] - Removing %d incompatible rules.\n"), 
			incompatible_rule_names.size());
	}
}
void PopulatePageSpeedRules ( std :: vector < pagespeed :: Rule * > * rules ) { const bool save_optimized_content = false ; pagespeed :: rule_provider :: AppendPageSpeedRules ( save_optimized_content , rules ) ; std :: vector < std :: string > incompatible_rule_names ; pagespeed :: InputCapabilities capabilities ( pagespeed :: InputCapabilities :: DOM | pagespeed :: InputCapabilities :: ONLOAD | pagespeed :: InputCapabilities :: PARENT_CHILD_RESOURCE_MAP | pagespeed :: InputCapabilities :: REQUEST_HEADERS | pagespeed :: InputCapabilities :: RESPONSE_BODY | pagespeed :: InputCapabilities :: REQUEST_START_TIMES ) ; pagespeed :: rule_provider :: RemoveIncompatibleRules ( rules , & incompatible_rule_names , capabilities ) ; if ( ! incompatible_rule_names . empty ( ) ) { ATLTRACE ( _T ( " \n " ) , incompatible_rule_names . size ( ) ) ; } }
Helper that populates the set of Page Speed rules used by Page Test.
Helper that populates the set of Page Speed rules used by Page Test .
// Don't save the optimized versions of resources in the 
 // results structure, in order to conserve memory.
 // Now remove any incompatible rules.
