#include "javascript_library_identification.h"
Public Member Functions | |
JavascriptLibraryId () | |
Constructs an unrecognized library. | |
bool | recognized () const |
Is this a recognized library? Otherwise we should ignore it. | |
const char * | name () const |
Canonical name of javascript library (NULL if unrecognized). | |
const char * | version () const |
Version number of javascript library (NULL if unrecognized). | |
Static Public Member Functions | |
static JavascriptLibraryId | Find (const StringPiece &minified_code) |
A JavascriptLibraryId contains information about a single third-party Javascript library. Given a block of minified Javascript with leading and trailing whitespace removed, the Find(...) method returns a corresponding JavascriptLibraryId. Note that JavascriptLibraryId is intended to be passed by value.
static JavascriptLibraryId net_instaweb::JavascriptLibraryId::Find | ( | const StringPiece & | minified_code | ) | [static] |
Find the JavascriptLibraryId object associated with the given minified_code. This might be an unrecognized library.