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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameConsole.h

Issue 2878933003: Makes WorkerInspectorProxy work with ExecutionContext instead of Document (Closed)
Patch Set: . Created 3 years, 7 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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // around ChromeClient calls and the way that Blink core/ can add messages to 49 // around ChromeClient calls and the way that Blink core/ can add messages to
50 // the console. 50 // the console.
51 class CORE_EXPORT FrameConsole final 51 class CORE_EXPORT FrameConsole final
52 : public GarbageCollectedFinalized<FrameConsole> { 52 : public GarbageCollectedFinalized<FrameConsole> {
53 public: 53 public:
54 static FrameConsole* Create(LocalFrame& frame) { 54 static FrameConsole* Create(LocalFrame& frame) {
55 return new FrameConsole(frame); 55 return new FrameConsole(frame);
56 } 56 }
57 57
58 void AddMessage(ConsoleMessage*); 58 void AddMessage(ConsoleMessage*);
59 void AddMessageFromWorker(MessageLevel,
60 const String& message,
61 std::unique_ptr<SourceLocation>,
62 const String& worker_id);
63 59
64 // Show the specified ConsoleMessage only if the frame haven't shown a message 60 // Show the specified ConsoleMessage only if the frame haven't shown a message
65 // same as ConsoleMessage::messsage(). 61 // same as ConsoleMessage::messsage().
66 void AddSingletonMessage(ConsoleMessage*); 62 void AddSingletonMessage(ConsoleMessage*);
67 63
68 bool AddMessageToStorage(ConsoleMessage*); 64 bool AddMessageToStorage(ConsoleMessage*);
69 void ReportMessageToClient(MessageSource, 65 void ReportMessageToClient(MessageSource,
70 MessageLevel, 66 MessageLevel,
71 const String& message, 67 const String& message,
72 SourceLocation*); 68 SourceLocation*);
73 69
74 void ReportResourceResponseReceived(DocumentLoader*, 70 void ReportResourceResponseReceived(DocumentLoader*,
75 unsigned long request_identifier, 71 unsigned long request_identifier,
76 const ResourceResponse&); 72 const ResourceResponse&);
77 73
78 void DidFailLoading(unsigned long request_identifier, const ResourceError&); 74 void DidFailLoading(unsigned long request_identifier, const ResourceError&);
79 75
80 DECLARE_TRACE(); 76 DECLARE_TRACE();
81 77
82 private: 78 private:
83 explicit FrameConsole(LocalFrame&); 79 explicit FrameConsole(LocalFrame&);
84 80
85 Member<LocalFrame> frame_; 81 Member<LocalFrame> frame_;
86 HashSet<String> singleton_messages_; 82 HashSet<String> singleton_messages_;
87 }; 83 };
88 84
89 } // namespace blink 85 } // namespace blink
90 86
91 #endif // FrameConsole_h 87 #endif // FrameConsole_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698