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

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

Issue 2645303002: Use a new Supplement constructor for supplements in core/ (Closed)
Patch Set: temp Created 3 years, 11 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void setPrimaryPointerType(const String&, ExceptionState&); 143 void setPrimaryPointerType(const String&, ExceptionState&);
144 void setAvailableHoverTypes(const String&, ExceptionState&); 144 void setAvailableHoverTypes(const String&, ExceptionState&);
145 void setPrimaryHoverType(const String&, ExceptionState&); 145 void setPrimaryHoverType(const String&, ExceptionState&);
146 void setDnsPrefetchLogging(bool, ExceptionState&); 146 void setDnsPrefetchLogging(bool, ExceptionState&);
147 void setPreloadLogging(bool, ExceptionState&); 147 void setPreloadLogging(bool, ExceptionState&);
148 148
149 private: 149 private:
150 explicit InternalSettings(Page&); 150 explicit InternalSettings(Page&);
151 151
152 Settings* settings() const; 152 Settings* settings() const;
153 Page* page() const { return m_page; } 153 Page* page() const { return supplementable(); }
154 static const char* supplementName(); 154 static const char* supplementName();
155 155
156 WeakMember<Page> m_page;
157 Backup m_backup; 156 Backup m_backup;
158 }; 157 };
159 158
160 } // namespace blink 159 } // namespace blink
161 160
162 #endif // InternalSettings_h 161 #endif // InternalSettings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698