Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
global_constants.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
20 
21 #ifndef NET_INSTAWEB_PUBLIC_GLOBAL_CONSTANTS_H_
22 #define NET_INSTAWEB_PUBLIC_GLOBAL_CONSTANTS_H_
23 
24 namespace {
25 
29 static const double kChromiumTimeOfDay = 1204251968254LL;
30 
31 const char kModPagespeedHeader[] = "X-Mod-Pagespeed";
32 const char kPageSpeedHeader[] = "X-Page-Speed";
33 
35 const char kModPagespeedSubrequestUserAgent[] = "mod_pagespeed";
36 
37 const char kWPTUserAgentIdentifier[] = "PTST";
38 
41 const char kPsaRewriterHeader[] = "X-PSA-Rewriter";
42 
46 const char kPsaLastModified[] = "X-PSA-Last-Modified";
47 
52 const char kPsaPurgeRequest[] = "X-PSA-Purge-Request";
53 
60 const char kPsaCapabilityList[] = "PS-CapabilityList";
61 
68 const char kPsaShouldBeacon[] = "PS-ShouldBeacon";
69 
72 const char kNoScriptRedirectFormatter[] =
73  "<noscript><meta HTTP-EQUIV=\"refresh\" content=\"0;url='%s'\" />"
74  "<style><!--table,div,span,font,p{display:none} --></style>"
75  "<div style=\"display:block\">Please click <a href=\"%s\">here</a> "
76  "if you are not redirected within a few seconds.</div></noscript>";
77 
80 const char kLinkRelCanonicalFormatter[] =
81  "<link rel=\"canonical\" href=\"%s\"/>";
82 
83 
84 }
85 
86 #endif