Changeset 140366 in webkit
- Timestamp:
- Jan 21, 2013 2:43:56 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r140238 r140366 1 2013-01-17 Andy Estes <aestes@apple.com> 2 3 Add a USE() macro for content filtering code 4 https://bugs.webkit.org/show_bug.cgi?id=107098 5 6 Reviewed by Mark Rowe. 7 8 * wtf/Platform.h: Define WTF_USE_CONTENT_FILTERING on Mac platforms 9 more recent than Lion. 10 1 11 2013-01-18 Laszlo Gombos <l.gombos@samsung.com> 2 12 -
trunk/Source/WTF/wtf/Platform.h
r140238 r140366 1210 1210 #endif 1211 1211 1212 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS) 1213 #define WTF_USE_CONTENT_FILTERING 1 1214 #endif 1215 1212 1216 #endif /* WTF_Platform_h */ -
trunk/Source/WebCore/ChangeLog
r140365 r140366 1 2013-01-17 Andy Estes <aestes@apple.com> 2 3 Add a USE() macro for content filtering code 4 https://bugs.webkit.org/show_bug.cgi?id=107098 5 6 Reviewed by Mark Rowe. 7 8 * WebCore.exp.in: Use USE(CONTENT_FILTERING). 9 * loader/MainResourceLoader.cpp: 10 (WebCore::MainResourceLoader::MainResourceLoader): Ditto. 11 (WebCore::MainResourceLoader::~MainResourceLoader): Ditto. 12 (WebCore::MainResourceLoader::cancel): Ditto. 13 (WebCore::MainResourceLoader::responseReceived): Ditto. 14 (WebCore::MainResourceLoader::dataReceived): Ditto. 15 (WebCore::MainResourceLoader::didFinishLoading): Ditto. 16 (WebCore::MainResourceLoader::notifyFinished): Ditto. 17 * loader/MainResourceLoader.h: 18 (MainResourceLoader): Ditto. 19 * platform/mac/WebCoreSystemInterface.h: Ditto. 20 * platform/mac/WebCoreSystemInterface.mm: Ditto. 21 1 22 2013-01-21 Bem Jones-Bey <bjonesbe@adobe.com> 2 23 -
trunk/Source/WebCore/WebCore.exp.in
r140265 r140366 2151 2151 #endif 2152 2152 2153 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 2154 _wkExecutableWasLinkedOnOrBeforeLion 2153 #if USE(CONTENT_FILTERING) 2155 2154 _wkFilterAddData 2156 2155 _wkFilterCreateInstance … … 2159 2158 _wkFilterRelease 2160 2159 _wkFilterWasBlocked 2160 #endif 2161 2162 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 2163 _wkExecutableWasLinkedOnOrBeforeLion 2161 2164 _wkNSElasticDeltaForReboundDelta 2162 2165 _wkNSElasticDeltaForTimeDelta -
trunk/Source/WebCore/loader/MainResourceLoader.cpp
r140105 r140366 62 62 #endif 63 63 64 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108064 #if USE(CONTENT_FILTERING) 65 65 #include "WebCoreSystemInterface.h" 66 66 #endif … … 75 75 , m_timeOfLastDataReceived(0.0) 76 76 , m_substituteDataLoadIdentifier(0) 77 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108077 #if USE(CONTENT_FILTERING) 78 78 , m_filter(0) 79 79 #endif … … 84 84 { 85 85 clearResource(); 86 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108086 #if USE(CONTENT_FILTERING) 87 87 ASSERT(!m_filter); 88 88 #endif … … 137 137 receivedError(resourceError); 138 138 139 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080139 #if USE(CONTENT_FILTERING) 140 140 if (m_filter) { 141 141 wkFilterRelease(m_filter); … … 454 454 #endif 455 455 456 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080456 #if USE(CONTENT_FILTERING) 457 457 if (r.url().protocolIs("https") && wkFilterIsManagedSession()) 458 458 m_filter = wkFilterCreateInstance(r.nsURLResponse()); … … 484 484 #endif 485 485 486 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080486 #if USE(CONTENT_FILTERING) 487 487 if (m_filter) { 488 488 ASSERT(!wkFilterWasBlocked(m_filter)); … … 512 512 documentLoader()->receivedData(data, length); 513 513 514 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080514 #if USE(CONTENT_FILTERING) 515 515 if (WebFilterEvaluator *filter = m_filter) { 516 516 // If we got here, it means we know if we were blocked or not. If we were blocked, we're … … 544 544 } 545 545 546 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080546 #if USE(CONTENT_FILTERING) 547 547 if (m_filter) { 548 548 int length; … … 580 580 } 581 581 582 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080582 #if USE(CONTENT_FILTERING) 583 583 if (m_filter) { 584 584 wkFilterRelease(m_filter); -
trunk/Source/WebCore/loader/MainResourceLoader.h
r140105 r140366 37 37 #include <wtf/Forward.h> 38 38 39 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108039 #if USE(CONTENT_FILTERING) 40 40 OBJC_CLASS WebFilterEvaluator; 41 41 #endif … … 131 131 unsigned long m_substituteDataLoadIdentifier; 132 132 133 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080133 #if USE(CONTENT_FILTERING) 134 134 WebFilterEvaluator *m_filter; 135 135 #endif -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r138553 r140366 337 337 #endif 338 338 339 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)339 #if USE(CONTENT_FILTERING) 340 340 extern BOOL (*wkFilterIsManagedSession)(void); 341 341 extern WebFilterEvaluator *(*wkFilterCreateInstance)(NSURLResponse *); … … 344 344 extern const char* (*wkFilterAddData)(WebFilterEvaluator *, const char* data, int* length); 345 345 extern const char* (*wkFilterDataComplete)(WebFilterEvaluator *, int* length); 346 346 #endif 347 348 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS) 347 349 extern CGFloat (*wkNSElasticDeltaForTimeDelta)(CGFloat initialPosition, CGFloat initialVelocity, CGFloat elapsedTime); 348 350 extern CGFloat (*wkNSElasticDeltaForReboundDelta)(CGFloat delta); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r138553 r140366 209 209 #endif 210 210 211 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)211 #if USE(CONTENT_FILTERING) 212 212 BOOL (*wkFilterIsManagedSession)(void); 213 213 WebFilterEvaluator *(*wkFilterCreateInstance)(NSURLResponse *); … … 216 216 const char* (*wkFilterAddData)(WebFilterEvaluator *, const char* data, int* length); 217 217 const char* (*wkFilterDataComplete)(WebFilterEvaluator *, int* length); 218 218 #endif 219 220 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS) 219 221 CGFloat (*wkNSElasticDeltaForTimeDelta)(CGFloat initialPosition, CGFloat initialVelocity, CGFloat elapsedTime); 220 222 CGFloat (*wkNSElasticDeltaForReboundDelta)(CGFloat delta); -
trunk/Source/WebKit/mac/ChangeLog
r140265 r140366 1 2013-01-17 Andy Estes <aestes@apple.com> 2 3 Add a USE() macro for content filtering code 4 https://bugs.webkit.org/show_bug.cgi?id=107098 5 6 Reviewed by Mark Rowe. 7 8 * WebCoreSupport/WebSystemInterface.mm: 9 (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING). 10 1 11 2013-01-19 Philip Rogers <pdr@google.com> 2 12 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r138553 r140366 206 206 #endif 207 207 208 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)208 #if USE(CONTENT_FILTERING) 209 209 INIT(FilterIsManagedSession); 210 210 INIT(FilterCreateInstance); … … 213 213 INIT(FilterAddData); 214 214 INIT(FilterDataComplete); 215 215 #endif 216 217 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS) 216 218 INIT(NSElasticDeltaForTimeDelta); 217 219 INIT(NSElasticDeltaForReboundDelta); -
trunk/Source/WebKit2/ChangeLog
r140351 r140366 1 2013-01-17 Andy Estes <aestes@apple.com> 2 3 Add a USE() macro for content filtering code 4 https://bugs.webkit.org/show_bug.cgi?id=107098 5 6 Reviewed by Mark Rowe. 7 8 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 9 (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING). 10 1 11 2013-01-21 Anders Carlsson <andersca@apple.com> 2 12 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r138553 r140366 169 169 INIT(CFURLRequestAllowAllPostCaching); 170 170 171 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)171 #if USE(CONTENT_FILTERING) 172 172 INIT(FilterIsManagedSession); 173 173 INIT(FilterCreateInstance); … … 176 176 INIT(FilterAddData); 177 177 INIT(FilterDataComplete); 178 #endif 178 179 180 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS) 179 181 INIT(NSElasticDeltaForTimeDelta); 180 182 INIT(NSElasticDeltaForReboundDelta);
Note: See TracChangeset
for help on using the changeset viewer.