OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class Document; | 44 class Document; |
45 class ExceptionState; | 45 class ExceptionState; |
46 class LocalFrame; | 46 class LocalFrame; |
47 class Page; | 47 class Page; |
48 class Settings; | 48 class Settings; |
49 | 49 |
50 #if ENABLE(OILPAN) | 50 #if ENABLE(OILPAN) |
51 class InternalSettings final : public InternalSettingsGenerated, public HeapSupp
lement<Page> { | 51 class InternalSettings final : public InternalSettingsGenerated, public HeapSupp
lement<Page> { |
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 52 USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); |
53 #else | 53 #else |
54 class InternalSettings final : public InternalSettingsGenerated { | 54 class InternalSettings final : public InternalSettingsGenerated { |
55 #endif | 55 #endif |
56 DEFINE_WRAPPERTYPEINFO(); | 56 DEFINE_WRAPPERTYPEINFO(); |
57 public: | 57 public: |
58 class Backup { | 58 class Backup { |
59 DISALLOW_NEW(); | 59 DISALLOW_NEW(); |
60 public: | 60 public: |
61 explicit Backup(Settings*); | 61 explicit Backup(Settings*); |
62 void restoreTo(Settings*); | 62 void restoreTo(Settings*); |
(...skipping 12 matching lines...) Expand all Loading... |
75 bool m_langAttributeAwareFormControlUIEnabled; | 75 bool m_langAttributeAwareFormControlUIEnabled; |
76 bool m_imagesEnabled; | 76 bool m_imagesEnabled; |
77 String m_defaultVideoPosterURL; | 77 String m_defaultVideoPosterURL; |
78 bool m_originalLayerSquashingEnabled; | 78 bool m_originalLayerSquashingEnabled; |
79 bool m_originalImageColorProfilesEnabled; | 79 bool m_originalImageColorProfilesEnabled; |
80 ImageAnimationPolicy m_originalImageAnimationPolicy; | 80 ImageAnimationPolicy m_originalImageAnimationPolicy; |
81 bool m_originalScrollTopLeftInteropEnabled; | 81 bool m_originalScrollTopLeftInteropEnabled; |
82 bool m_originalCompositorWorkerEnabled; | 82 bool m_originalCompositorWorkerEnabled; |
83 }; | 83 }; |
84 | 84 |
85 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 85 static RawPtr<InternalSettings> create(Page& page) |
86 { | 86 { |
87 return adoptRefWillBeNoop(new InternalSettings(page)); | 87 return new InternalSettings(page); |
88 } | 88 } |
89 static InternalSettings* from(Page&); | 89 static InternalSettings* from(Page&); |
90 | 90 |
91 #if !ENABLE(OILPAN) | 91 #if !ENABLE(OILPAN) |
92 void hostDestroyed() { m_page = nullptr; } | 92 void hostDestroyed() { m_page = nullptr; } |
93 #endif | 93 #endif |
94 | 94 |
95 ~InternalSettings() override; | 95 ~InternalSettings() override; |
96 void resetToConsistentState(); | 96 void resetToConsistentState(); |
97 | 97 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void setDnsPrefetchLogging(bool, ExceptionState&); | 139 void setDnsPrefetchLogging(bool, ExceptionState&); |
140 void setPreloadLogging(bool, ExceptionState&); | 140 void setPreloadLogging(bool, ExceptionState&); |
141 | 141 |
142 private: | 142 private: |
143 explicit InternalSettings(Page&); | 143 explicit InternalSettings(Page&); |
144 | 144 |
145 Settings* settings() const; | 145 Settings* settings() const; |
146 Page* page() const { return m_page; } | 146 Page* page() const { return m_page; } |
147 static const char* supplementName(); | 147 static const char* supplementName(); |
148 | 148 |
149 RawPtrWillBeWeakMember<Page> m_page; | 149 WeakMember<Page> m_page; |
150 Backup m_backup; | 150 Backup m_backup; |
151 }; | 151 }; |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
154 | 154 |
155 #endif // InternalSettings_h | 155 #endif // InternalSettings_h |
OLD | NEW |