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

Side by Side Diff: Source/core/inspector/InspectorPageAgent.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& f rameId) 893 Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& f rameId)
894 { 894 {
895 Frame* frame = frameForId(frameId); 895 Frame* frame = frameForId(frameId);
896 if (!frame) 896 if (!frame)
897 *errorString = "No frame for given id found"; 897 *errorString = "No frame for given id found";
898 return frame; 898 return frame;
899 } 899 }
900 900
901 String InspectorPageAgent::resourceSourceMapURL(const String& url) 901 String InspectorPageAgent::resourceSourceMapURL(const String& url)
902 { 902 {
903 DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, (ASCIILiteral("SourceMap")) ); 903 DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, ("SourceMap"));
904 DEFINE_STATIC_LOCAL(String, deprecatedSourceMapHttpHeader, (ASCIILiteral("X- SourceMap"))); 904 DEFINE_STATIC_LOCAL(String, deprecatedSourceMapHttpHeader, ("X-SourceMap"));
905 if (url.isEmpty()) 905 if (url.isEmpty())
906 return String(); 906 return String();
907 Frame* frame = mainFrame(); 907 Frame* frame = mainFrame();
908 if (!frame) 908 if (!frame)
909 return String(); 909 return String();
910 Resource* resource = cachedResource(frame, KURL(ParsedURLString, url)); 910 Resource* resource = cachedResource(frame, KURL(ParsedURLString, url));
911 if (!resource) 911 if (!resource)
912 return String(); 912 return String();
913 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d eprecatedSourceMapHttpHeader); 913 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d eprecatedSourceMapHttpHeader);
914 if (!deprecatedHeaderSourceMapURL.isEmpty()) { 914 if (!deprecatedHeaderSourceMapURL.isEmpty()) {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 } 1275 }
1276 1276
1277 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1277 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1278 { 1278 {
1279 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1279 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1280 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1280 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1281 } 1281 }
1282 1282
1283 } // namespace WebCore 1283 } // namespace WebCore
1284 1284
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorIndexedDBAgent.cpp ('k') | Source/core/inspector/InspectorProfilerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698