OLD | NEW |
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 17 matching lines...) Expand all Loading... |
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/heap/Handle.h" |
33 #include "platform/weborigin/KURL.h" | 33 #include "platform/weborigin/KURL.h" |
34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class LocalDOMWindow; | |
39 class EventQueue; | |
40 class EventTarget; | 38 class EventTarget; |
41 class ExecutionContextTask; | 39 class ExecutionContextTask; |
42 class KURL; | 40 class KURL; |
43 template<class T> class LifecycleNotifier; | 41 class LocalDOMWindow; |
44 class ScriptCallStack; | 42 class ScriptCallStack; |
45 class ScriptState; | 43 class ScriptState; |
46 class SecurityContext; | 44 class SecurityContext; |
47 | 45 |
48 class ExecutionContextClient { | 46 class ExecutionContextClient { |
49 public: | 47 public: |
50 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the
task on context's thread asynchronously. | 48 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the
task on context's thread asynchronously. |
51 | 49 |
52 virtual bool isDocument() const { return false; } | 50 virtual bool isDocument() const { return false; } |
53 virtual bool isWorkerGlobalScope() const { return false; } | 51 virtual bool isWorkerGlobalScope() const { return false; } |
(...skipping 16 matching lines...) Expand all Loading... |
70 | 68 |
71 protected: | 69 protected: |
72 virtual ~ExecutionContextClient() { } | 70 virtual ~ExecutionContextClient() { } |
73 | 71 |
74 }; | 72 }; |
75 | 73 |
76 | 74 |
77 } // namespace | 75 } // namespace |
78 | 76 |
79 #endif | 77 #endif |
OLD | NEW |