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

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

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 if (isSchemeWhitelisted(scheme)) 132 if (isSchemeWhitelisted(scheme))
133 return true; 133 return true;
134 134
135 exceptionState.throwSecurityError("The scheme '" + scheme + "' doesn't belon g to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'."); 135 exceptionState.throwSecurityError("The scheme '" + scheme + "' doesn't belon g to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'.");
136 return false; 136 return false;
137 } 137 }
138 138
139 NavigatorContentUtils* NavigatorContentUtils::from(LocalFrame& frame) 139 NavigatorContentUtils* NavigatorContentUtils::from(LocalFrame& frame)
140 { 140 {
141 return static_cast<NavigatorContentUtils*>(HeapSupplement<LocalFrame>::from( frame, supplementName())); 141 return static_cast<NavigatorContentUtils*>(Supplement<LocalFrame>::from(fram e, supplementName()));
142 } 142 }
143 143
144 NavigatorContentUtils::~NavigatorContentUtils() 144 NavigatorContentUtils::~NavigatorContentUtils()
145 { 145 {
146 } 146 }
147 147
148 RawPtr<NavigatorContentUtils> NavigatorContentUtils::create(RawPtr<NavigatorCont entUtilsClient> client) 148 RawPtr<NavigatorContentUtils> NavigatorContentUtils::create(RawPtr<NavigatorCont entUtilsClient> client)
149 { 149 {
150 return new NavigatorContentUtils(client); 150 return new NavigatorContentUtils(client);
151 } 151 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 { 228 {
229 return "NavigatorContentUtils"; 229 return "NavigatorContentUtils";
230 } 230 }
231 231
232 void provideNavigatorContentUtilsTo(LocalFrame& frame, RawPtr<NavigatorContentUt ilsClient> client) 232 void provideNavigatorContentUtilsTo(LocalFrame& frame, RawPtr<NavigatorContentUt ilsClient> client)
233 { 233 {
234 NavigatorContentUtils::provideTo(frame, NavigatorContentUtils::supplementNam e(), NavigatorContentUtils::create(client)); 234 NavigatorContentUtils::provideTo(frame, NavigatorContentUtils::supplementNam e(), NavigatorContentUtils::create(client));
235 } 235 }
236 236
237 } // namespace blink 237 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698