OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 NullExecutionContext(); | 60 NullExecutionContext(); |
61 | 61 |
62 virtual EventQueue* eventQueue() const OVERRIDE { return m_queue.get(); } | 62 virtual EventQueue* eventQueue() const OVERRIDE { return m_queue.get(); } |
63 | 63 |
64 void trace(Visitor* visitor) | 64 void trace(Visitor* visitor) |
65 { | 65 { |
66 visitor->trace(m_queue); | 66 visitor->trace(m_queue); |
67 ExecutionContext::trace(visitor); | 67 ExecutionContext::trace(visitor); |
68 } | 68 } |
69 | 69 |
| 70 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE { } |
| 71 virtual SecurityContext& securityContext() { return *this; } |
| 72 |
70 #if !ENABLE(OILPAN) | 73 #if !ENABLE(OILPAN) |
71 using RefCounted<NullExecutionContext>::ref; | 74 using RefCounted<NullExecutionContext>::ref; |
72 using RefCounted<NullExecutionContext>::deref; | 75 using RefCounted<NullExecutionContext>::deref; |
73 | 76 |
74 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE { } | |
75 | |
76 virtual SecurityContext& securityContext() { return *this; } | |
77 | |
78 virtual void refExecutionContext() OVERRIDE { ref(); } | 77 virtual void refExecutionContext() OVERRIDE { ref(); } |
79 virtual void derefExecutionContext() OVERRIDE { deref(); } | 78 virtual void derefExecutionContext() OVERRIDE { deref(); } |
80 #endif | 79 #endif |
81 | 80 |
82 protected: | 81 protected: |
83 virtual const KURL& virtualURL() const OVERRIDE { return m_dummyURL; } | 82 virtual const KURL& virtualURL() const OVERRIDE { return m_dummyURL; } |
84 virtual KURL virtualCompleteURL(const String&) const OVERRIDE { return m_dum
myURL; } | 83 virtual KURL virtualCompleteURL(const String&) const OVERRIDE { return m_dum
myURL; } |
85 | 84 |
86 private: | 85 private: |
87 OwnPtrWillBeMember<EventQueue> m_queue; | 86 OwnPtrWillBeMember<EventQueue> m_queue; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); | 196 OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); |
198 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call
backs, transactionId, version); | 197 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call
backs, transactionId, version); |
199 EXPECT_EQ(request->readyState(), "pending"); | 198 EXPECT_EQ(request->readyState(), "pending"); |
200 | 199 |
201 executionContext()->stopActiveDOMObjects(); | 200 executionContext()->stopActiveDOMObjects(); |
202 request->onSuccess(backend.release(), metadata); | 201 request->onSuccess(backend.release(), metadata); |
203 } | 202 } |
204 } | 203 } |
205 | 204 |
206 } // namespace | 205 } // namespace |
OLD | NEW |