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

Side by Side Diff: Source/web/WebPageSerializer.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 WebString WebPageSerializer::generateMarkOfTheWebDeclaration(const WebURL& url) 287 WebString WebPageSerializer::generateMarkOfTheWebDeclaration(const WebURL& url)
288 { 288 {
289 return String::format("\n<!-- saved from url=(%04d)%s -->\n", 289 return String::format("\n<!-- saved from url=(%04d)%s -->\n",
290 static_cast<int>(url.spec().length()), 290 static_cast<int>(url.spec().length()),
291 url.spec().data()); 291 url.spec().data());
292 } 292 }
293 293
294 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar get) 294 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar get)
295 { 295 {
296 if (baseTarget.isEmpty()) 296 if (baseTarget.isEmpty())
297 return String(ASCIILiteral("<base href=\".\">")); 297 return String("<base href=\".\">");
298 String baseString = "<base href=\".\" target=\"" + static_cast<const String& >(baseTarget) + "\">"; 298 String baseString = "<base href=\".\" target=\"" + static_cast<const String& >(baseTarget) + "\">";
299 return baseString; 299 return baseString;
300 } 300 }
301 301
302 } // namespace WebKit 302 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketPerMessageDeflate.cpp ('k') | Source/weborigin/SecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698