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

Side by Side Diff: third_party/WebKit/Source/platform/Logging.cpp

Issue 1861603003: Remove WTF_LOG(FileAPI,...) (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) 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "platform/Logging.h" 26 #include "platform/Logging.h"
27 27
28 #include "wtf/text/WTFString.h" 28 #include "wtf/text/WTFString.h"
29 29
30 #if !LOG_DISABLED 30 #if !LOG_DISABLED
31 31
32 namespace blink { 32 namespace blink {
33 33
34 WTFLogChannel LogFileAPI = { WTFLogChannelOff };
35 WTFLogChannel LogMedia = { WTFLogChannelOff }; 34 WTFLogChannel LogMedia = { WTFLogChannelOff };
36 WTFLogChannel LogNetwork = { WTFLogChannelOff }; 35 WTFLogChannel LogNetwork = { WTFLogChannelOff };
37 WTFLogChannel LogResourceLoading = { WTFLogChannelOff }; 36 WTFLogChannel LogResourceLoading = { WTFLogChannelOff };
38 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff }; 37 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff };
39 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; 38 WTFLogChannel LogStorageAPI = { WTFLogChannelOff };
40 WTFLogChannel LogTimers = { WTFLogChannelOff }; 39 WTFLogChannel LogTimers = { WTFLogChannelOff };
41 40
42 WTFLogChannel* getChannelFromName(const String& channelName) 41 WTFLogChannel* getChannelFromName(const String& channelName)
43 { 42 {
44 if (!(channelName.length() >= 2)) 43 if (!(channelName.length() >= 2))
45 return 0; 44 return 0;
46 45
47 if (equalIgnoringCase(channelName, String("Media"))) 46 if (equalIgnoringCase(channelName, String("Media")))
48 return &LogMedia; 47 return &LogMedia;
49 48
50 if (equalIgnoringCase(channelName, String("Network"))) 49 if (equalIgnoringCase(channelName, String("Network")))
51 return &LogNetwork; 50 return &LogNetwork;
52 51
53 if (equalIgnoringCase(channelName, String("ResourceLoading"))) 52 if (equalIgnoringCase(channelName, String("ResourceLoading")))
54 return &LogResourceLoading; 53 return &LogResourceLoading;
55 54
56 if (equalIgnoringCase(channelName, String("SQLDatabase"))) 55 if (equalIgnoringCase(channelName, String("SQLDatabase")))
57 return &LogSQLDatabase; 56 return &LogSQLDatabase;
58 57
59 if (equalIgnoringCase(channelName, String("StorageAPI"))) 58 if (equalIgnoringCase(channelName, String("StorageAPI")))
60 return &LogStorageAPI; 59 return &LogStorageAPI;
61 60
62 if (equalIgnoringCase(channelName, String("FileAPI")))
63 return &LogFileAPI;
64
65 if (equalIgnoringCase(channelName, String("Timers"))) 61 if (equalIgnoringCase(channelName, String("Timers")))
66 return &LogTimers; 62 return &LogTimers;
67 63
68 return 0; 64 return 0;
69 } 65 }
70 66
71 } 67 }
72 68
73 #endif // !LOG_DISABLED 69 #endif // !LOG_DISABLED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698