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

Unified Diff: third_party/WebKit/Source/core/frame/FrameConsole.h

Issue 2502763004: INPUT element: Deprecate case-insensitive matching for radio button group names. (Closed)
Patch Set: a Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameConsole.h
diff --git a/third_party/WebKit/Source/core/frame/FrameConsole.h b/third_party/WebKit/Source/core/frame/FrameConsole.h
index d12741dd9c098f722bc2939d88191ed7159ec629..2bb0be613094a191935913c4f344317f40735293 100644
--- a/third_party/WebKit/Source/core/frame/FrameConsole.h
+++ b/third_party/WebKit/Source/core/frame/FrameConsole.h
@@ -33,6 +33,7 @@
#include "core/inspector/ConsoleTypes.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -47,7 +48,8 @@ class SourceLocation;
// FrameHost to the ChromeClient and Inspector. It's meant as an abstraction
// around ChromeClient calls and the way that Blink core/ can add messages to
// the console.
-class CORE_EXPORT FrameConsole final : public GarbageCollected<FrameConsole> {
+class CORE_EXPORT FrameConsole final
+ : public GarbageCollectedFinalized<FrameConsole> {
public:
static FrameConsole* create(LocalFrame& frame) {
return new FrameConsole(frame);
@@ -59,6 +61,10 @@ class CORE_EXPORT FrameConsole final : public GarbageCollected<FrameConsole> {
std::unique_ptr<SourceLocation>,
const String& workerId);
+ // Show the specified ConsoleMessage only if the frame haven't shown a message
+ // same as ConsoleMessage::messsage().
+ void addSingletonMessage(ConsoleMessage*);
+
bool addMessageToStorage(ConsoleMessage*);
void reportMessageToClient(MessageSource,
MessageLevel,
@@ -77,6 +83,7 @@ class CORE_EXPORT FrameConsole final : public GarbageCollected<FrameConsole> {
explicit FrameConsole(LocalFrame&);
Member<LocalFrame> m_frame;
+ HashSet<String> m_singletonMessages;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/core/frame/FrameConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698