Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6894)

Unified Diff: chrome_frame/html_utils.h

Issue 9720001: Add a setting to CF to remove 'chromeframe' from the UserAgent on a per-pattern basis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: In the end. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/html_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/html_utils.h
diff --git a/chrome_frame/html_utils.h b/chrome_frame/html_utils.h
index 285bc6342e2a2576a6a53f29ae39d0caf968e60f..54175b2cfc5107c7d3d3cc1ebc115b94a9f496fc 100644
--- a/chrome_frame/html_utils.h
+++ b/chrome_frame/html_utils.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -127,11 +127,16 @@ class HTMLScanner {
namespace http_utils {
-// Adds "chromeframe/x.y" to the end of the User-Agent string (x.y is the
-// version). If the cf tag has already been added to the string,
-// the original string is returned.
+// Adds "chromeframe/a.b.c.d" to the User-Agent string (a.b.c.d is the version).
+// If the cf tag has already been added to the string, the original string is
+// returned.
std::string AddChromeFrameToUserAgentValue(const std::string& value);
+// Removes "chromeframe/a.b.c.d" from the User-Agent string (a.b.c.d is the
+// version). If the cf tag is not present in the string, the original string is
+// returned.
+std::string RemoveChromeFrameFromUserAgentValue(const std::string& value);
+
// Fetches the user agent from urlmon and adds chrome frame to the
// comment section.
// NOTE: The returned string includes the "User-Agent: " header name.
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/html_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698