| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 WTFLogChannel LogFTP = { WTFLogChannelOff }; | 51 WTFLogChannel LogFTP = { WTFLogChannelOff }; |
| 52 WTFLogChannel LogThreading = { WTFLogChannelOff }; | 52 WTFLogChannel LogThreading = { WTFLogChannelOff }; |
| 53 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; | 53 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; |
| 54 | 54 |
| 55 WTFLogChannel LogMedia = { WTFLogChannelOff }; | 55 WTFLogChannel LogMedia = { WTFLogChannelOff }; |
| 56 WTFLogChannel LogArchives = { WTFLogChannelOff }; | 56 WTFLogChannel LogArchives = { WTFLogChannelOff }; |
| 57 WTFLogChannel LogProgress = { WTFLogChannelOff }; | 57 WTFLogChannel LogProgress = { WTFLogChannelOff }; |
| 58 | 58 |
| 59 WTFLogChannel LogFileAPI = { WTFLogChannelOff }; | 59 WTFLogChannel LogFileAPI = { WTFLogChannelOff }; |
| 60 | 60 |
| 61 WTFLogChannel LogCompositing = { WTFLogChannelOff }; | |
| 62 | |
| 63 WTFLogChannel LogScriptedAnimationController = { WTFLogChannelOff }; | 61 WTFLogChannel LogScriptedAnimationController = { WTFLogChannelOff }; |
| 64 WTFLogChannel LogTimers = { WTFLogChannelOff }; | 62 WTFLogChannel LogTimers = { WTFLogChannelOff }; |
| 65 | 63 |
| 66 WTFLogChannel* getChannelFromName(const String& channelName) | 64 WTFLogChannel* getChannelFromName(const String& channelName) |
| 67 { | 65 { |
| 68 if (!(channelName.length() >= 2)) | 66 if (!(channelName.length() >= 2)) |
| 69 return 0; | 67 return 0; |
| 70 | 68 |
| 71 if (equalIgnoringCase(channelName, String("BackForward"))) | 69 if (equalIgnoringCase(channelName, String("BackForward"))) |
| 72 return &LogBackForward; | 70 return &LogBackForward; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 110 |
| 113 if (equalIgnoringCase(channelName, String("StorageAPI"))) | 111 if (equalIgnoringCase(channelName, String("StorageAPI"))) |
| 114 return &LogStorageAPI; | 112 return &LogStorageAPI; |
| 115 | 113 |
| 116 if (equalIgnoringCase(channelName, String("Threading"))) | 114 if (equalIgnoringCase(channelName, String("Threading"))) |
| 117 return &LogThreading; | 115 return &LogThreading; |
| 118 | 116 |
| 119 if (equalIgnoringCase(channelName, String("FileAPI"))) | 117 if (equalIgnoringCase(channelName, String("FileAPI"))) |
| 120 return &LogFileAPI; | 118 return &LogFileAPI; |
| 121 | 119 |
| 122 if (equalIgnoringCase(channelName, String("Compositing"))) | |
| 123 return &LogCompositing; | |
| 124 | |
| 125 if (equalIgnoringCase(channelName, String("ScriptedAnimationController"))) | 120 if (equalIgnoringCase(channelName, String("ScriptedAnimationController"))) |
| 126 return &LogScriptedAnimationController; | 121 return &LogScriptedAnimationController; |
| 127 | 122 |
| 128 if (equalIgnoringCase(channelName, String("Timers"))) | 123 if (equalIgnoringCase(channelName, String("Timers"))) |
| 129 return &LogTimers; | 124 return &LogTimers; |
| 130 | 125 |
| 131 return 0; | 126 return 0; |
| 132 } | 127 } |
| 133 | 128 |
| 134 } | 129 } |
| 135 | 130 |
| 136 #endif // !LOG_DISABLED | 131 #endif // !LOG_DISABLED |
| OLD | NEW |