Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
source_map.h File Reference
#include <vector>
#include "pagespeed/kernel/base/basictypes.h"
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.


struct  net_instaweb::source_map::Mapping


 Unit-test framework for wget fetcher.


typedef std::vector< Mapping > net_instaweb::source_map::MappingVector


bool net_instaweb::source_map::Encode (StringPiece generated_url, StringPiece source_url, const MappingVector &mappings, GoogleString *encoded_source_map)
char net_instaweb::source_map::EncodeBase64 (int val)
 Simply convert val 0-63 into a base64 char. More...
GoogleString net_instaweb::source_map::EncodeVlq (int32 val)
bool net_instaweb::source_map::EncodeMappings (const MappingVector &mappings, GoogleString *result)
 Encodes mappings into a sequence of ; and , separated VLQ base64 values.
GoogleString net_instaweb::source_map::PercentEncode (StringPiece url)
 Percent encode < and > in URLs to avoid XSS shenanigans.

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Encoder for Source Map Revision 3. Specification and other info: