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

Side by Side Diff: Source/bindings/core/v8/custom/V8CustomXPathNSResolver.h

Issue 1236473002: Fix virtual/override/final usage in Source/bindings/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698