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

Side by Side Diff: Source/core/frame/Navigator.h

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' Created 6 years, 9 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
« no previous file with comments | « Source/core/frame/DOMWindow.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 21 matching lines...) Expand all
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class DOMMimeTypeArray; 35 class DOMMimeTypeArray;
36 class DOMPluginArray; 36 class DOMPluginArray;
37 class LocalFrame; 37 class LocalFrame;
38 class PluginData; 38 class PluginData;
39 39
40 typedef int ExceptionCode; 40 typedef int ExceptionCode;
41 41
42 class Navigator FINAL : public NavigatorBase, public ScriptWrappable, public Ref Counted<Navigator>, public DOMWindowProperty, public Supplementable<Navigator> { 42 class Navigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<Navigat or>, public NavigatorBase, public ScriptWrappable, public DOMWindowProperty, pub lic WillBeHeapSupplementable<Navigator> {
43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Navigator);
43 public: 44 public:
44 static PassRefPtr<Navigator> create(LocalFrame* frame) { return adoptRef(new Navigator(frame)); } 45 static PassRefPtrWillBeRawPtr<Navigator> create(LocalFrame* frame)
46 {
47 return adoptRefWillBeNoop(new Navigator(frame));
48 }
49
45 virtual ~Navigator(); 50 virtual ~Navigator();
46 51
47 AtomicString language() const; 52 AtomicString language() const;
48 DOMPluginArray* plugins() const; 53 DOMPluginArray* plugins() const;
49 DOMMimeTypeArray* mimeTypes() const; 54 DOMMimeTypeArray* mimeTypes() const;
50 bool cookieEnabled() const; 55 bool cookieEnabled() const;
51 bool javaEnabled() const; 56 bool javaEnabled() const;
52 57
53 String productSub() const; 58 String productSub() const;
54 String vendor() const; 59 String vendor() const;
55 String vendorSub() const; 60 String vendorSub() const;
56 61
57 virtual String userAgent() const OVERRIDE; 62 virtual String userAgent() const OVERRIDE;
58 63
59 // Relinquishes the storage lock, if one exists. 64 // Relinquishes the storage lock, if one exists.
60 void getStorageUpdates(); 65 void getStorageUpdates();
61 66
67 virtual void trace(Visitor*);
68
62 private: 69 private:
63 explicit Navigator(LocalFrame*); 70 explicit Navigator(LocalFrame*);
64 71
65 mutable RefPtrWillBePersistent<DOMPluginArray> m_plugins; 72 mutable RefPtrWillBeMember<DOMPluginArray> m_plugins;
66 mutable RefPtrWillBePersistent<DOMMimeTypeArray> m_mimeTypes; 73 mutable RefPtrWillBeMember<DOMMimeTypeArray> m_mimeTypes;
67 }; 74 };
68 75
69 } 76 }
70 77
71 #endif 78 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Navigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698