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

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

Issue 1820083005: Remove platform/NotImplemented.*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 };
39 WTFLogChannel LogPlugins = { WTFLogChannelOff }; 38 WTFLogChannel LogPlugins = { WTFLogChannelOff };
40 WTFLogChannel LogResourceLoading = { WTFLogChannelOff }; 39 WTFLogChannel LogResourceLoading = { WTFLogChannelOff };
41 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff }; 40 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff };
42 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; 41 WTFLogChannel LogStorageAPI = { WTFLogChannelOff };
43 WTFLogChannel LogTimers = { WTFLogChannelOff }; 42 WTFLogChannel LogTimers = { WTFLogChannelOff };
44 WTFLogChannel LogWebAudio = { WTFLogChannelOff }; 43 WTFLogChannel LogWebAudio = { WTFLogChannelOff };
45 44
46 WTFLogChannel* getChannelFromName(const String& channelName) 45 WTFLogChannel* getChannelFromName(const String& channelName)
47 { 46 {
48 if (!(channelName.length() >= 2)) 47 if (!(channelName.length() >= 2))
49 return 0; 48 return 0;
50 49
51 if (equalIgnoringCase(channelName, String("Media"))) 50 if (equalIgnoringCase(channelName, String("Media")))
52 return &LogMedia; 51 return &LogMedia;
53 52
54 if (equalIgnoringCase(channelName, String("Network"))) 53 if (equalIgnoringCase(channelName, String("Network")))
55 return &LogNetwork; 54 return &LogNetwork;
56 55
57 if (equalIgnoringCase(channelName, String("NotYetImplemented")))
58 return &LogNotYetImplemented;
59
60 if (equalIgnoringCase(channelName, String("ResourceLoading"))) 56 if (equalIgnoringCase(channelName, String("ResourceLoading")))
61 return &LogResourceLoading; 57 return &LogResourceLoading;
62 58
63 if (equalIgnoringCase(channelName, String("Plugins"))) 59 if (equalIgnoringCase(channelName, String("Plugins")))
64 return &LogPlugins; 60 return &LogPlugins;
65 61
66 if (equalIgnoringCase(channelName, String("SQLDatabase"))) 62 if (equalIgnoringCase(channelName, String("SQLDatabase")))
67 return &LogSQLDatabase; 63 return &LogSQLDatabase;
68 64
69 if (equalIgnoringCase(channelName, String("StorageAPI"))) 65 if (equalIgnoringCase(channelName, String("StorageAPI")))
(...skipping 10 matching lines...) Expand all
80 76
81 if (equalIgnoringCase(channelName, String("Fonts"))) 77 if (equalIgnoringCase(channelName, String("Fonts")))
82 return &LogFonts; 78 return &LogFonts;
83 79
84 return 0; 80 return 0;
85 } 81 }
86 82
87 } 83 }
88 84
89 #endif // !LOG_DISABLED 85 #endif // !LOG_DISABLED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698