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

Side by Side Diff: Source/core/dom/ExecutionContext.h

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 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/dom/Document.cpp ('k') | Source/core/dom/ExecutionContext.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 17 matching lines...) Expand all
28 #ifndef ExecutionContext_h 28 #ifndef ExecutionContext_h
29 #define ExecutionContext_h 29 #define ExecutionContext_h
30 30
31 #include "core/dom/ActiveDOMObject.h" 31 #include "core/dom/ActiveDOMObject.h"
32 #include "core/dom/ExecutionContextClient.h" 32 #include "core/dom/ExecutionContextClient.h"
33 #include "core/dom/SandboxFlags.h" 33 #include "core/dom/SandboxFlags.h"
34 #include "core/dom/SecurityContext.h" 34 #include "core/dom/SecurityContext.h"
35 #include "core/fetch/CrossOriginAccessControl.h" 35 #include "core/fetch/CrossOriginAccessControl.h"
36 #include "core/frame/ConsoleTypes.h" 36 #include "core/frame/ConsoleTypes.h"
37 #include "core/frame/DOMTimer.h" 37 #include "core/frame/DOMTimer.h"
38 #include "core/inspector/ConsoleMessage.h"
38 #include "platform/LifecycleContext.h" 39 #include "platform/LifecycleContext.h"
39 #include "platform/Supplementable.h" 40 #include "platform/Supplementable.h"
40 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
41 #include "platform/weborigin/KURL.h" 42 #include "platform/weborigin/KURL.h"
42 #include "wtf/Functional.h" 43 #include "wtf/Functional.h"
43 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
44 #include "wtf/PassOwnPtr.h" 45 #include "wtf/PassOwnPtr.h"
45 46
46 namespace blink { 47 namespace blink {
47 48
(...skipping 29 matching lines...) Expand all
77 78
78 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0; 79 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0;
79 80
80 virtual SecurityContext& securityContext() = 0; 81 virtual SecurityContext& securityContext() = 0;
81 KURL contextURL() const { return virtualURL(); } 82 KURL contextURL() const { return virtualURL(); }
82 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); } 83 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); }
83 84
84 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus) ; 85 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus) ;
85 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtrWillBeRaw Ptr<ScriptCallStack>, AccessControlStatus); 86 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtrWillBeRaw Ptr<ScriptCallStack>, AccessControlStatus);
86 87
87 void addConsoleMessage(MessageSource, MessageLevel, const String& message, c onst String& sourceURL, unsigned lineNumber); 88 void addConsoleMessage(PassRefPtr<ConsoleMessage>);
88 void addConsoleMessage(MessageSource, MessageLevel, const String& message, S criptState* = 0);
89 89
90 PublicURLManager& publicURLManager(); 90 PublicURLManager& publicURLManager();
91 91
92 // Active objects are not garbage collected even if inaccessible, e.g. becau se their activity may result in callbacks being invoked. 92 // Active objects are not garbage collected even if inaccessible, e.g. becau se their activity may result in callbacks being invoked.
93 bool hasPendingActivity(); 93 bool hasPendingActivity();
94 94
95 void suspendActiveDOMObjects(); 95 void suspendActiveDOMObjects();
96 void resumeActiveDOMObjects(); 96 void resumeActiveDOMObjects();
97 void stopActiveDOMObjects(); 97 void stopActiveDOMObjects();
98 unsigned activeDOMObjectCount(); 98 unsigned activeDOMObjectCount();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // The location of this member is important; to make sure contextDestroyed() notification on 170 // The location of this member is important; to make sure contextDestroyed() notification on
171 // ExecutionContext's members (notably m_timeouts) is called before they are destructed, 171 // ExecutionContext's members (notably m_timeouts) is called before they are destructed,
172 // m_lifecycleNotifer should be placed *after* such members. 172 // m_lifecycleNotifer should be placed *after* such members.
173 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; 173 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier;
174 }; 174 };
175 175
176 } // namespace blink 176 } // namespace blink
177 177
178 #endif // ExecutionContext_h 178 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698