OLD | NEW |
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 Loading... |
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 |
OLD | NEW |