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

Side by Side Diff: Source/core/workers/SharedWorker.h

Issue 631133003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 22 matching lines...) Expand all
33 #define SharedWorker_h 33 #define SharedWorker_h
34 34
35 #include "core/workers/AbstractWorker.h" 35 #include "core/workers/AbstractWorker.h"
36 #include "platform/Supplementable.h" 36 #include "platform/Supplementable.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class ExceptionState; 41 class ExceptionState;
42 42
43 class SharedWorker FINAL : public AbstractWorker, public WillBeHeapSupplementabl e<SharedWorker> { 43 class SharedWorker final : public AbstractWorker, public WillBeHeapSupplementabl e<SharedWorker> {
44 DEFINE_WRAPPERTYPEINFO(); 44 DEFINE_WRAPPERTYPEINFO();
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
46 public: 46 public:
47 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&); 47 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
48 virtual ~SharedWorker(); 48 virtual ~SharedWorker();
49 49
50 MessagePort* port() const { return m_port.get(); } 50 MessagePort* port() const { return m_port.get(); }
51 51
52 virtual const AtomicString& interfaceName() const OVERRIDE; 52 virtual const AtomicString& interfaceName() const override;
53 53
54 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } 54 void setIsBeingConnected(bool b) { m_isBeingConnected = b; }
55 55
56 virtual bool hasPendingActivity() const OVERRIDE; 56 virtual bool hasPendingActivity() const override;
57 57
58 virtual void trace(Visitor*) OVERRIDE; 58 virtual void trace(Visitor*) override;
59 59
60 private: 60 private:
61 explicit SharedWorker(ExecutionContext*); 61 explicit SharedWorker(ExecutionContext*);
62 62
63 RefPtrWillBeMember<MessagePort> m_port; 63 RefPtrWillBeMember<MessagePort> m_port;
64 bool m_isBeingConnected; 64 bool m_isBeingConnected;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // SharedWorker_h 69 #endif // SharedWorker_h
OLDNEW
« no previous file with comments | « Source/core/workers/DedicatedWorkerThread.h ('k') | Source/core/workers/SharedWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698