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

Unified Diff: Source/core/page/PageConsole.h

Issue 111113003: Move PageConsole to using FrameHost instead of Page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « Source/core/frame/FrameHost.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageConsole.h
diff --git a/Source/core/page/PageConsole.h b/Source/core/page/PageConsole.h
index b62d1922ed15be0930a0373a6b3a8742354cb11c..1a6e21a59dd8b0ccdf50dd3b466b71964d3eacbc 100644
--- a/Source/core/page/PageConsole.h
+++ b/Source/core/page/PageConsole.h
@@ -37,11 +37,11 @@
namespace WebCore {
-class Page;
+class FrameHost;
class PageConsole FINAL {
public:
- static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new PageConsole(page)); }
+ static PassOwnPtr<PageConsole> create(FrameHost& host) { return adoptPtr(new PageConsole(host)); }
void addMessage(MessageSource, MessageLevel, const String& message);
void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<ScriptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0);
@@ -52,9 +52,9 @@ public:
static void unmute();
private:
- explicit PageConsole(Page*);
+ explicit PageConsole(FrameHost&);
- Page* m_page;
+ FrameHost& m_frameHost;
};
} // namespace WebCore
« no previous file with comments | « Source/core/frame/FrameHost.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698