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

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

Issue 1828353002: Revert of Remove platform/NotImplemented.*. (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 17 matching lines...) Expand all
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 }; 34 WTFLogChannel LogFileAPI = { WTFLogChannelOff };
35 WTFLogChannel LogFonts = { WTFLogChannelOff }; 35 WTFLogChannel LogFonts = { WTFLogChannelOff };
36 WTFLogChannel LogMedia = { WTFLogChannelOff }; 36 WTFLogChannel LogMedia = { WTFLogChannelOff };
37 WTFLogChannel LogNetwork = { WTFLogChannelOff }; 37 WTFLogChannel LogNetwork = { WTFLogChannelOff };
38 WTFLogChannel LogNotYetImplemented = { WTFLogChannelOff };
38 WTFLogChannel LogPlugins = { WTFLogChannelOff }; 39 WTFLogChannel LogPlugins = { WTFLogChannelOff };
39 WTFLogChannel LogResourceLoading = { WTFLogChannelOff }; 40 WTFLogChannel LogResourceLoading = { WTFLogChannelOff };
40 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff }; 41 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff };
41 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; 42 WTFLogChannel LogStorageAPI = { WTFLogChannelOff };
42 WTFLogChannel LogTimers = { WTFLogChannelOff }; 43 WTFLogChannel LogTimers = { WTFLogChannelOff };
43 WTFLogChannel LogWebAudio = { WTFLogChannelOff }; 44 WTFLogChannel LogWebAudio = { WTFLogChannelOff };
44 45
45 WTFLogChannel* getChannelFromName(const String& channelName) 46 WTFLogChannel* getChannelFromName(const String& channelName)
46 { 47 {
47 if (!(channelName.length() >= 2)) 48 if (!(channelName.length() >= 2))
48 return 0; 49 return 0;
49 50
50 if (equalIgnoringCase(channelName, String("Media"))) 51 if (equalIgnoringCase(channelName, String("Media")))
51 return &LogMedia; 52 return &LogMedia;
52 53
53 if (equalIgnoringCase(channelName, String("Network"))) 54 if (equalIgnoringCase(channelName, String("Network")))
54 return &LogNetwork; 55 return &LogNetwork;
55 56
57 if (equalIgnoringCase(channelName, String("NotYetImplemented")))
58 return &LogNotYetImplemented;
59
56 if (equalIgnoringCase(channelName, String("ResourceLoading"))) 60 if (equalIgnoringCase(channelName, String("ResourceLoading")))
57 return &LogResourceLoading; 61 return &LogResourceLoading;
58 62
59 if (equalIgnoringCase(channelName, String("Plugins"))) 63 if (equalIgnoringCase(channelName, String("Plugins")))
60 return &LogPlugins; 64 return &LogPlugins;
61 65
62 if (equalIgnoringCase(channelName, String("SQLDatabase"))) 66 if (equalIgnoringCase(channelName, String("SQLDatabase")))
63 return &LogSQLDatabase; 67 return &LogSQLDatabase;
64 68
65 if (equalIgnoringCase(channelName, String("StorageAPI"))) 69 if (equalIgnoringCase(channelName, String("StorageAPI")))
(...skipping 10 matching lines...) Expand all
76 80
77 if (equalIgnoringCase(channelName, String("Fonts"))) 81 if (equalIgnoringCase(channelName, String("Fonts")))
78 return &LogFonts; 82 return &LogFonts;
79 83
80 return 0; 84 return 0;
81 } 85 }
82 86
83 } 87 }
84 88
85 #endif // !LOG_DISABLED 89 #endif // !LOG_DISABLED
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Logging.h ('k') | third_party/WebKit/Source/platform/NotImplemented.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698