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

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

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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/dom/ExecutionContext.cpp ('k') | Source/core/dom/Node.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 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 11 matching lines...) Expand all
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef ExecutionContextClient_h 27 #ifndef ExecutionContextClient_h
28 #define ExecutionContextClient_h 28 #define ExecutionContextClient_h
29 29
30 #include "core/frame/ConsoleTypes.h" 30 #include "core/frame/ConsoleTypes.h"
31 #include "platform/LifecycleNotifier.h" 31 #include "platform/LifecycleNotifier.h"
32 #include "platform/heap/Handle.h"
32 #include "platform/weborigin/KURL.h" 33 #include "platform/weborigin/KURL.h"
33 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
34 35
35 namespace WebCore { 36 namespace WebCore {
36 37
37 class DOMWindow; 38 class DOMWindow;
38 class EventQueue; 39 class EventQueue;
39 class EventTarget; 40 class EventTarget;
40 class ExecutionContextTask; 41 class ExecutionContextTask;
41 class KURL; 42 class KURL;
(...skipping 11 matching lines...) Expand all
53 virtual bool isJSExecutionForbidden() const = 0; 54 virtual bool isJSExecutionForbidden() const = 0;
54 virtual DOMWindow* executingWindow() { return 0; } 55 virtual DOMWindow* executingWindow() { return 0; }
55 virtual String userAgent(const KURL&) const = 0; 56 virtual String userAgent(const KURL&) const = 0;
56 virtual void disableEval(const String& errorMessage) = 0; 57 virtual void disableEval(const String& errorMessage) = 0;
57 virtual SecurityContext& securityContext() = 0; 58 virtual SecurityContext& securityContext() = 0;
58 virtual const KURL& virtualURL() const = 0; 59 virtual const KURL& virtualURL() const = 0;
59 virtual KURL virtualCompleteURL(const String&) const = 0; 60 virtual KURL virtualCompleteURL(const String&) const = 0;
60 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) = 0; 61 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) = 0;
61 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0; 62 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) = 0;
62 virtual EventTarget* errorEventTarget() = 0; 63 virtual EventTarget* errorEventTarget() = 0;
63 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) = 0; 64 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) = 0;
64 virtual double timerAlignmentInterval() const = 0; 65 virtual double timerAlignmentInterval() const = 0;
65 virtual void didUpdateSecurityOrigin() = 0; 66 virtual void didUpdateSecurityOrigin() = 0;
66 67
67 virtual void tasksWereSuspended() { } 68 virtual void tasksWereSuspended() { }
68 virtual void tasksWereResumed() { } 69 virtual void tasksWereResumed() { }
69 70
70 void addConsoleMessage(MessageSource source, MessageLevel level, const Strin g& message, const String& sourceURL, unsigned lineNumber) { addMessage(source, l evel, message, sourceURL, lineNumber, 0); } 71 void addConsoleMessage(MessageSource source, MessageLevel level, const Strin g& message, const String& sourceURL, unsigned lineNumber) { addMessage(source, l evel, message, sourceURL, lineNumber, 0); }
71 void addConsoleMessage(MessageSource source, MessageLevel level, const Strin g& message, ScriptState* state = 0) { addMessage(source, level, message, String( ), 0, state); } 72 void addConsoleMessage(MessageSource source, MessageLevel level, const Strin g& message, ScriptState* state = 0) { addMessage(source, level, message, String( ), 0, state); }
72 KURL contextURL() const { return virtualURL(); } 73 KURL contextURL() const { return virtualURL(); }
73 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); } 74 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL (url); }
74 75
75 protected: 76 protected:
76 virtual ~ExecutionContextClient() { } 77 virtual ~ExecutionContextClient() { }
77 78
78 }; 79 };
79 80
80 81
81 } // namespace 82 } // namespace
82 83
83 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ExecutionContext.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698