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

Side by Side Diff: Source/core/page/PageConsole.h

Issue 20890003: Limit console messages' automatic collection of parser state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline "fast/frames/sandboxed-iframe-autofocus-denied.html" Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/ConsoleTypes.h ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class Page; 42 class Page;
43 class ScriptExecutionContext; 43 class ScriptExecutionContext;
44 44
45 class PageConsole { 45 class PageConsole {
46 public: 46 public:
47 static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new Page Console(page)); } 47 static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new Page Console(page)); }
48 virtual ~PageConsole(); 48 virtual ~PageConsole();
49 49
50 void addMessage(MessageSource, MessageLevel, const String& message, const St ring& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<Scri ptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0); 50 void addMessage(MessageSource, MessageLevel, const String& message, const St ring& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<Scri ptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0);
51 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP tr<ScriptCallStack>); 51 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP tr<ScriptCallStack>);
52 void addMessage(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier = 0, Document* = 0); 52 void addMessage(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier = 0, Document* = 0, ParserStateCollectionDisposition par serStateDisposition = DoNotForceParserStateCollection);
53 53
54 static void mute(); 54 static void mute();
55 static void unmute(); 55 static void unmute();
56 56
57 private: 57 private:
58 PageConsole(Page*); 58 PageConsole(Page*);
59 59
60 Page* page() { return m_page; }; 60 Page* page() { return m_page; };
61 61
62 Page* m_page; 62 Page* m_page;
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // PageConsole_h 67 #endif // PageConsole_h
OLDNEW
« no previous file with comments | « Source/core/page/ConsoleTypes.h ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698