| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 // V8CustomXPathNSResolver does not create a persistent handle to the | 43 // V8CustomXPathNSResolver does not create a persistent handle to the |
| 44 // given resolver object. So the lifetime of V8CustomXPathNSResolver | 44 // given resolver object. So the lifetime of V8CustomXPathNSResolver |
| 45 // must not exceed the lifetime of the passed handle. | 45 // must not exceed the lifetime of the passed handle. |
| 46 class V8CustomXPathNSResolver final : public XPathNSResolver { | 46 class V8CustomXPathNSResolver final : public XPathNSResolver { |
| 47 public: | 47 public: |
| 48 static V8CustomXPathNSResolver* create(ScriptState*, v8::Local<v8::Object> r
esolver); | 48 static V8CustomXPathNSResolver* create(ScriptState*, v8::Local<v8::Object> r
esolver); |
| 49 | 49 |
| 50 virtual AtomicString lookupNamespaceURI(const String& prefix) override; | 50 AtomicString lookupNamespaceURI(const String& prefix) override; |
| 51 | 51 |
| 52 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 V8CustomXPathNSResolver(ScriptState*, v8::Local<v8::Object> resolver); | 55 V8CustomXPathNSResolver(ScriptState*, v8::Local<v8::Object> resolver); |
| 56 | 56 |
| 57 RefPtr<ScriptState> m_scriptState; | 57 RefPtr<ScriptState> m_scriptState; |
| 58 v8::Local<v8::Object> m_resolver; // Handle to resolver object. | 58 v8::Local<v8::Object> m_resolver; // Handle to resolver object. |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // V8CustomXPathNSResolver_h | 63 #endif // V8CustomXPathNSResolver_h |
| OLD | NEW |