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

Side by Side Diff: Source/core/frame/Navigator.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
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/Navigator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 22
23 #include "bindings/core/v8/ScriptWrappable.h" 23 #include "bindings/core/v8/ScriptWrappable.h"
24 #include "core/frame/DOMWindowProperty.h" 24 #include "core/frame/DOMWindowProperty.h"
25 #include "core/frame/NavigatorCPU.h" 25 #include "core/frame/NavigatorCPU.h"
26 #include "core/frame/NavigatorID.h" 26 #include "core/frame/NavigatorID.h"
27 #include "core/frame/NavigatorLanguage.h" 27 #include "core/frame/NavigatorLanguage.h"
28 #include "core/frame/NavigatorOnLine.h" 28 #include "core/frame/NavigatorOnLine.h"
29 #include "platform/Supplementable.h" 29 #include "platform/Supplementable.h"
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h"
34 #include "wtf/RefPtr.h"
35 32
36 namespace blink { 33 namespace blink {
37 34
38 class LocalFrame; 35 class LocalFrame;
39 36
40 typedef int ExceptionCode; 37 typedef int ExceptionCode;
41 38
42 class Navigator final 39 class Navigator final
43 : public RefCountedWillBeGarbageCollectedFinalized<Navigator> 40 : public GarbageCollectedFinalized<Navigator>
44 , public NavigatorCPU 41 , public NavigatorCPU
45 , public NavigatorID 42 , public NavigatorID
46 , public NavigatorLanguage 43 , public NavigatorLanguage
47 , public NavigatorOnLine 44 , public NavigatorOnLine
48 , public ScriptWrappable 45 , public ScriptWrappable
49 , public DOMWindowProperty 46 , public DOMWindowProperty
50 , public WillBeHeapSupplementable<Navigator> { 47 , public HeapSupplementable<Navigator> {
51 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Navigator); 49 USING_GARBAGE_COLLECTED_MIXIN(Navigator);
53 public: 50 public:
54 static PassRefPtrWillBeRawPtr<Navigator> create(LocalFrame* frame) 51 static Navigator* create(LocalFrame* frame)
55 { 52 {
56 return adoptRefWillBeNoop(new Navigator(frame)); 53 return new Navigator(frame);
57 } 54 }
58 55
59 virtual ~Navigator(); 56 virtual ~Navigator();
60 57
61 bool cookieEnabled() const; 58 bool cookieEnabled() const;
62 59
63 String productSub() const; 60 String productSub() const;
64 String vendor() const; 61 String vendor() const;
65 String vendorSub() const; 62 String vendorSub() const;
66 63
67 virtual String userAgent() const override; 64 virtual String userAgent() const override;
68 65
69 // Relinquishes the storage lock, if one exists. 66 // Relinquishes the storage lock, if one exists.
70 void getStorageUpdates(); 67 void getStorageUpdates();
71 68
72 // NavigatorLanguage 69 // NavigatorLanguage
73 virtual Vector<String> languages() override; 70 virtual Vector<String> languages() override;
74 71
75 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
76 73
77 private: 74 private:
78 explicit Navigator(LocalFrame*); 75 explicit Navigator(LocalFrame*);
79 }; 76 };
80 77
81 } // namespace blink 78 } // namespace blink
82 79
83 #endif // Navigator_h 80 #endif // Navigator_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/Navigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698