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

Side by Side Diff: third_party/WebKit/Source/core/testing/InternalSettings.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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
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 13 matching lines...) Expand all
76 bool m_langAttributeAwareFormControlUIEnabled; 76 bool m_langAttributeAwareFormControlUIEnabled;
77 bool m_imagesEnabled; 77 bool m_imagesEnabled;
78 String m_defaultVideoPosterURL; 78 String m_defaultVideoPosterURL;
79 bool m_originalLayerSquashingEnabled; 79 bool m_originalLayerSquashingEnabled;
80 bool m_originalImageColorProfilesEnabled; 80 bool m_originalImageColorProfilesEnabled;
81 ImageAnimationPolicy m_originalImageAnimationPolicy; 81 ImageAnimationPolicy m_originalImageAnimationPolicy;
82 bool m_originalScrollTopLeftInteropEnabled; 82 bool m_originalScrollTopLeftInteropEnabled;
83 bool m_originalCompositorWorkerEnabled; 83 bool m_originalCompositorWorkerEnabled;
84 }; 84 };
85 85
86 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) 86 static RawPtr<InternalSettings> create(Page& page)
87 { 87 {
88 return adoptRefWillBeNoop(new InternalSettings(page)); 88 return (new InternalSettings(page));
89 } 89 }
90 static InternalSettings* from(Page&); 90 static InternalSettings* from(Page&);
91 91
92 #if !ENABLE(OILPAN) 92 #if !ENABLE(OILPAN)
93 void hostDestroyed() { m_page = nullptr; } 93 void hostDestroyed() { m_page = nullptr; }
94 #endif 94 #endif
95 95
96 ~InternalSettings() override; 96 ~InternalSettings() override;
97 void resetToConsistentState(); 97 void resetToConsistentState();
98 98
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void setDnsPrefetchLogging(bool, ExceptionState&); 141 void setDnsPrefetchLogging(bool, ExceptionState&);
142 void setPreloadLogging(bool, ExceptionState&); 142 void setPreloadLogging(bool, ExceptionState&);
143 143
144 private: 144 private:
145 explicit InternalSettings(Page&); 145 explicit InternalSettings(Page&);
146 146
147 Settings* settings() const; 147 Settings* settings() const;
148 Page* page() const { return m_page; } 148 Page* page() const { return m_page; }
149 static const char* supplementName(); 149 static const char* supplementName();
150 150
151 RawPtrWillBeWeakMember<Page> m_page; 151 WeakMember<Page> m_page;
152 Backup m_backup; 152 Backup m_backup;
153 }; 153 };
154 154
155 } // namespace blink 155 } // namespace blink
156 156
157 #endif // InternalSettings_h 157 #endif // InternalSettings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698