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

Side by Side Diff: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp

Issue 2395543002: reflow comments in modules/[mediasource,plugins] (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, Google Inc. All rights reserved.
3 * Copyright (C) 2014, Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014, Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 static bool verifyCustomHandlerScheme(const String& scheme, 102 static bool verifyCustomHandlerScheme(const String& scheme,
103 ExceptionState& exceptionState) { 103 ExceptionState& exceptionState) {
104 if (!isValidProtocol(scheme)) { 104 if (!isValidProtocol(scheme)) {
105 exceptionState.throwSecurityError("The scheme '" + scheme + 105 exceptionState.throwSecurityError("The scheme '" + scheme +
106 "' is not valid protocol"); 106 "' is not valid protocol");
107 return false; 107 return false;
108 } 108 }
109 109
110 if (scheme.startsWith("web+")) { 110 if (scheme.startsWith("web+")) {
111 // The specification requires that the length of scheme is at least five cha racteres (including 'web+' prefix). 111 // The specification requires that the length of scheme is at least five
112 // characteres (including 'web+' prefix).
112 if (scheme.length() >= 5) 113 if (scheme.length() >= 5)
113 return true; 114 return true;
114 115
115 exceptionState.throwSecurityError("The scheme '" + scheme + 116 exceptionState.throwSecurityError("The scheme '" + scheme +
116 "' is less than five characters long."); 117 "' is less than five characters long.");
117 return false; 118 return false;
118 } 119 }
119 120
120 if (isSchemeWhitelisted(scheme)) 121 if (isSchemeWhitelisted(scheme))
121 return true; 122 return true;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 247 }
247 248
248 void provideNavigatorContentUtilsTo(LocalFrame& frame, 249 void provideNavigatorContentUtilsTo(LocalFrame& frame,
249 NavigatorContentUtilsClient* client) { 250 NavigatorContentUtilsClient* client) {
250 NavigatorContentUtils::provideTo(frame, 251 NavigatorContentUtils::provideTo(frame,
251 NavigatorContentUtils::supplementName(), 252 NavigatorContentUtils::supplementName(),
252 NavigatorContentUtils::create(client)); 253 NavigatorContentUtils::create(client));
253 } 254 }
254 255
255 } // namespace blink 256 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698