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

Side by Side Diff: Source/modules/mediastream/RTCVoidRequestImpl.h

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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) 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 21 matching lines...) Expand all
32 #define RTCVoidRequestImpl_h 32 #define RTCVoidRequestImpl_h
33 33
34 #include "core/dom/ActiveDOMObject.h" 34 #include "core/dom/ActiveDOMObject.h"
35 #include "platform/mediastream/RTCVoidRequest.h" 35 #include "platform/mediastream/RTCVoidRequest.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class RTCErrorCallback; 39 class RTCErrorCallback;
40 class VoidCallback; 40 class VoidCallback;
41 41
42 class RTCVoidRequestImpl : public RTCVoidRequest, public ActiveDOMObject { 42 class RTCVoidRequestImpl FINAL : public RTCVoidRequest, public ActiveDOMObject {
43 public: 43 public:
44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassOwnPtr<V oidCallback>, PassOwnPtr<RTCErrorCallback>); 44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassOwnPtr<V oidCallback>, PassOwnPtr<RTCErrorCallback>);
45 virtual ~RTCVoidRequestImpl(); 45 virtual ~RTCVoidRequestImpl();
46 46
47 virtual void requestSucceeded(); 47 // RTCVoidRequest
48 virtual void requestFailed(const String& error); 48 virtual void requestSucceeded() OVERRIDE;
49 virtual void requestFailed(const String& error) OVERRIDE;
49 50
50 // ActiveDOMObject 51 // ActiveDOMObject
51 virtual void stop() OVERRIDE; 52 virtual void stop() OVERRIDE;
52 53
53 private: 54 private:
54 RTCVoidRequestImpl(ExecutionContext*, PassOwnPtr<VoidCallback>, PassOwnPtr<R TCErrorCallback>); 55 RTCVoidRequestImpl(ExecutionContext*, PassOwnPtr<VoidCallback>, PassOwnPtr<R TCErrorCallback>);
55 56
56 void clear(); 57 void clear();
57 58
58 OwnPtr<VoidCallback> m_successCallback; 59 OwnPtr<VoidCallback> m_successCallback;
59 OwnPtr<RTCErrorCallback> m_errorCallback; 60 OwnPtr<RTCErrorCallback> m_errorCallback;
60 }; 61 };
61 62
62 } // namespace WebCore 63 } // namespace WebCore
63 64
64 #endif // RTCVoidRequestImpl_h 65 #endif // RTCVoidRequestImpl_h
65 66
66 67
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCStatsResponse.h ('k') | Source/modules/mediastream/UserMediaController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698