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

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

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (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 * 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 28 matching lines...) Expand all
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 43
44 class CORE_EXPORT SharedWorker final : public AbstractWorker, public WillBeHeapS upplementable<SharedWorker> { 44 class CORE_EXPORT SharedWorker final : public AbstractWorker, public WillBeHeapS upplementable<SharedWorker> {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
47 public: 47 public:
48 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&); 48 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
49 virtual ~SharedWorker(); 49 ~SharedWorker() override;
50 50
51 MessagePort* port() const { return m_port.get(); } 51 MessagePort* port() const { return m_port.get(); }
52 52
53 virtual const AtomicString& interfaceName() const override; 53 const AtomicString& interfaceName() const override;
54 54
55 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } 55 void setIsBeingConnected(bool b) { m_isBeingConnected = b; }
56 56
57 virtual bool hasPendingActivity() const override; 57 bool hasPendingActivity() const override;
58 58
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 private: 61 private:
62 explicit SharedWorker(ExecutionContext*); 62 explicit SharedWorker(ExecutionContext*);
63 63
64 PersistentWillBeMember<MessagePort> m_port; 64 PersistentWillBeMember<MessagePort> m_port;
65 bool m_isBeingConnected; 65 bool m_isBeingConnected;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // SharedWorker_h 70 #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