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

Side by Side Diff: Source/web/ContextFeaturesClientImpl.cpp

Issue 270213006: Oilpan: Remove unnecessary trace methods in the supplement hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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) 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 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 Entry& entryFor(ContextFeatures::FeatureType type) 85 Entry& entryFor(ContextFeatures::FeatureType type)
86 { 86 {
87 size_t index = static_cast<size_t>(type); 87 size_t index = static_cast<size_t>(type);
88 ASSERT_WITH_SECURITY_IMPLICATION(index < ContextFeatures::FeatureTypeSiz e); 88 ASSERT_WITH_SECURITY_IMPLICATION(index < ContextFeatures::FeatureTypeSiz e);
89 return m_entries[index]; 89 return m_entries[index];
90 } 90 }
91 91
92 void validateAgainst(Document*); 92 void validateAgainst(Document*);
93 93
94 virtual void trace(Visitor* visitor) OVERRIDE { DocumentSupplement::trace(vi sitor); }
95
96 private: 94 private:
97 String m_domain; 95 String m_domain;
98 Entry m_entries[ContextFeatures::FeatureTypeSize]; 96 Entry m_entries[ContextFeatures::FeatureTypeSize];
99 }; 97 };
100 98
101 const char* ContextFeaturesCache::supplementName() 99 const char* ContextFeaturesCache::supplementName()
102 { 100 {
103 return "ContextFeaturesCache"; 101 return "ContextFeaturesCache";
104 } 102 }
105 103
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 case ContextFeatures::MutationEvents: 149 case ContextFeatures::MutationEvents:
152 return frame->permissionClient()->allowMutationEvents(defaultValue); 150 return frame->permissionClient()->allowMutationEvents(defaultValue);
153 case ContextFeatures::PushState: 151 case ContextFeatures::PushState:
154 return frame->permissionClient()->allowPushState(); 152 return frame->permissionClient()->allowPushState();
155 default: 153 default:
156 return defaultValue; 154 return defaultValue;
157 } 155 }
158 } 156 }
159 157
160 } // namespace blink 158 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698