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

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

Issue 2141493002: Add missing traces for Supplement<> classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 if (!verifyCustomHandlerURL(*document, url, exceptionState)) 220 if (!verifyCustomHandlerURL(*document, url, exceptionState))
221 return; 221 return;
222 222
223 if (!verifyCustomHandlerScheme(scheme, exceptionState)) 223 if (!verifyCustomHandlerScheme(scheme, exceptionState))
224 return; 224 return;
225 225
226 NavigatorContentUtils::from(*navigator.frame())->client()->unregisterProtoco lHandler(scheme, document->completeURL(url)); 226 NavigatorContentUtils::from(*navigator.frame())->client()->unregisterProtoco lHandler(scheme, document->completeURL(url));
227 } 227 }
228 228
229 DEFINE_TRACE(NavigatorContentUtils)
230 {
231 visitor->trace(m_client);
232 Supplement<LocalFrame>::trace(visitor);
233 }
234
229 const char* NavigatorContentUtils::supplementName() 235 const char* NavigatorContentUtils::supplementName()
230 { 236 {
231 return "NavigatorContentUtils"; 237 return "NavigatorContentUtils";
232 } 238 }
233 239
234 void provideNavigatorContentUtilsTo(LocalFrame& frame, NavigatorContentUtilsClie nt* client) 240 void provideNavigatorContentUtilsTo(LocalFrame& frame, NavigatorContentUtilsClie nt* client)
235 { 241 {
236 NavigatorContentUtils::provideTo(frame, NavigatorContentUtils::supplementNam e(), NavigatorContentUtils::create(client)); 242 NavigatorContentUtils::provideTo(frame, NavigatorContentUtils::supplementNam e(), NavigatorContentUtils::create(client));
237 } 243 }
238 244
239 } // namespace blink 245 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698