Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef FrameClientHintsPreferencesContext_h | |
| 6 #define FrameClientHintsPreferencesContext_h | |
| 7 | |
| 8 #include "core/fetch/ClientHintsPreferences.h" | |
| 9 #include "core/frame/Frame.h" | |
| 10 #include "platform/heap/Persistent.h" | |
| 11 #include "wtf/Allocator.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class FrameClientHintsPreferencesContext | |
|
yhirano
2016/12/08 07:47:12
+final
tyoshino (SeeGerritForStatus)
2016/12/09 09:43:24
Done.
| |
| 16 : public ClientHintsPreferences::Context { | |
| 17 STACK_ALLOCATED(); | |
| 18 | |
| 19 public: | |
| 20 explicit FrameClientHintsPreferencesContext(Frame*); | |
| 21 | |
| 22 void countClientHintsDPR() override; | |
| 23 void countClientHintsResourceWidth() override; | |
| 24 void countClientHintsViewportWidth() override; | |
| 25 | |
| 26 private: | |
| 27 Persistent<Frame> m_frame; | |
|
yhirano
2016/12/08 07:47:12
I think a STACK_ALLOCATED class can have an onheap
tyoshino (SeeGerritForStatus)
2016/12/09 09:43:24
Tried, but it seems we can't.
../../third_party/W
tyoshino (SeeGerritForStatus)
2016/12/09 09:46:38
Sorry I misunderstood the suggestion. Done
| |
| 28 }; | |
| 29 | |
| 30 } // namespace blink | |
| 31 | |
| 32 #endif // FrameClientHintsPreferencesContext_h | |
| OLD | NEW |