OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 BackgroundFetchRequest_h |
| 6 #define BackgroundFetchRequest_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class Request; |
| 14 |
| 15 // Base interface for providing developers with access to the Request |
| 16 // information associated with a background fetch. |
| 17 class BackgroundFetchRequest : public GarbageCollected<BackgroundFetchRequest>, |
| 18 public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 |
| 21 public: |
| 22 // Web Exposed attribute defined in the IDL file. |
| 23 Request* request() const; |
| 24 |
| 25 DECLARE_VIRTUAL_TRACE(); |
| 26 |
| 27 protected: |
| 28 explicit BackgroundFetchRequest(Request*); |
| 29 |
| 30 private: |
| 31 Member<Request> m_request; |
| 32 }; |
| 33 |
| 34 } // namespace blink |
| 35 |
| 36 #endif // BackgroundFetchRequest_h |
OLD | NEW |