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

Side by Side Diff: third_party/WebKit/Source/core/loader/MixedContentChecker.cpp

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "platform/weborigin/SecurityOrigin.h" 42 #include "platform/weborigin/SecurityOrigin.h"
43 #include "public/platform/Platform.h" 43 #include "public/platform/Platform.h"
44 #include "wtf/text/StringBuilder.h" 44 #include "wtf/text/StringBuilder.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 static void measureStricterVersionOfIsMixedContent(LocalFrame* frame, const KURL & url) 48 static void measureStricterVersionOfIsMixedContent(LocalFrame* frame, const KURL & url)
49 { 49 {
50 // We're currently only checking for mixed content in `https://*` contexts. 50 // We're currently only checking for mixed content in `https://*` contexts.
51 // What about other "secure" contexts the SchemeRegistry knows about? We'll 51 // What about other "secure" contexts the SchemeRegistry knows about? We'll
52 // use this method to measure the occurance of non-webby mixed content to 52 // use this method to measure the occurrence of non-webby mixed content to
53 // make sure we're not breaking the world without realizing it. 53 // make sure we're not breaking the world without realizing it.
54 SecurityOrigin* origin = frame->document()->securityOrigin(); 54 SecurityOrigin* origin = frame->document()->securityOrigin();
55 if (MixedContentChecker::isMixedContent(origin, url)) { 55 if (MixedContentChecker::isMixedContent(origin, url)) {
56 if (frame->document()->securityOrigin()->protocol() != "https") 56 if (frame->document()->securityOrigin()->protocol() != "https")
57 UseCounter::count(frame, UseCounter::MixedContentInNonHTTPSFrameThat RestrictsMixedContent); 57 UseCounter::count(frame, UseCounter::MixedContentInNonHTTPSFrameThat RestrictsMixedContent);
58 } else if (!SecurityOrigin::isSecure(url) && SchemeRegistry::shouldTreatURLS chemeAsSecure(origin->protocol())) { 58 } else if (!SecurityOrigin::isSecure(url) && SchemeRegistry::shouldTreatURLS chemeAsSecure(origin->protocol())) {
59 UseCounter::count(frame, UseCounter::MixedContentInSecureFrameThatDoesNo tRestrictMixedContent); 59 UseCounter::count(frame, UseCounter::MixedContentInSecureFrameThatDoesNo tRestrictMixedContent);
60 } 60 }
61 } 61 }
62 62
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 // See comment in shouldBlockFetch() about loading the main resource of a su bframe. 490 // See comment in shouldBlockFetch() about loading the main resource of a su bframe.
491 if (request.frameType() == WebURLRequest::FrameTypeNested && !SchemeRegistry ::shouldTreatURLSchemeAsCORSEnabled(request.url().protocol())) { 491 if (request.frameType() == WebURLRequest::FrameTypeNested && !SchemeRegistry ::shouldTreatURLSchemeAsCORSEnabled(request.url().protocol())) {
492 return ContextTypeOptionallyBlockable; 492 return ContextTypeOptionallyBlockable;
493 } 493 }
494 494
495 return contextTypeFromContext(request.requestContext(), mixedFrame); 495 return contextTypeFromContext(request.requestContext(), mixedFrame);
496 } 496 }
497 497
498 } // namespace blink 498 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkHeader.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698