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

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

Issue 18822004: Extension Error Piping - Blink: WebKit Side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: 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
« no previous file with comments | « Source/core/page/Console.cpp ('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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 50 void addMessage(MessageSource, MessageLevel, const String& message);
51 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, const St ring& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<Scri ptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0);
52 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP tr<ScriptCallStack>); 52 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP tr<ScriptCallStack>);
53 static String formatStackTraceString(const String& originalMessage, PassRefP tr<ScriptCallStack>);
53 54
54 static void mute(); 55 static void mute();
55 static void unmute(); 56 static void unmute();
56 57
57 private: 58 private:
58 PageConsole(Page*); 59 PageConsole(Page*);
59 60
60 Page* page() { return m_page; }; 61 Page* page() { return m_page; };
61 62
62 Page* m_page; 63 Page* m_page;
63 }; 64 };
64 65
65 } // namespace WebCore 66 } // namespace WebCore
66 67
67 #endif // PageConsole_h 68 #endif // PageConsole_h
OLDNEW
« no previous file with comments | « Source/core/page/Console.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698