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

Side by Side Diff: Source/modules/presentation/NavigatorPresentation.h

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NavigatorPresentation_h 5 #ifndef NavigatorPresentation_h
6 #define NavigatorPresentation_h 6 #define NavigatorPresentation_h
7 7
8 #include "platform/Supplementable.h" 8 #include "platform/Supplementable.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class Navigator; 13 class Navigator;
14 class Presentation; 14 class Presentation;
15 15
16 class NavigatorPresentation final 16 class NavigatorPresentation final : public GarbageCollectedFinalized<NavigatorPr esentation>, public HeapSupplement<Navigator> {
17 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation> 17 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation);
18 , public WillBeHeapSupplement<Navigator> {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation);
20 public: 18 public:
21 virtual ~NavigatorPresentation();
22
23 static NavigatorPresentation& from(Navigator&); 19 static NavigatorPresentation& from(Navigator&);
24 static Presentation* presentation(Navigator&); 20 static Presentation* presentation(Navigator&);
25 21
26 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
27 23
28 private: 24 private:
29 static const char* supplementName();
30
31 NavigatorPresentation(); 25 NavigatorPresentation();
32 26
27 static const char* supplementName();
33 Presentation* presentation(); 28 Presentation* presentation();
34 29
35 PersistentWillBeMember<Presentation> m_presentation; 30 Member<Presentation> m_presentation;
36 }; 31 };
37 32
38 } // namespace blink 33 } // namespace blink
39 34
40 #endif // NavigatorPresentation_h 35 #endif // NavigatorPresentation_h
OLDNEW
« no previous file with comments | « Source/modules/plugins/NavigatorPlugins.cpp ('k') | Source/modules/presentation/NavigatorPresentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698