| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BackgroundFetchRequest_h | 5 #ifndef BackgroundFetchFetch_h |
| 6 #define BackgroundFetchRequest_h | 6 #define BackgroundFetchFetch_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class Request; | 13 class Request; |
| 14 | 14 |
| 15 // Base interface for providing developers with access to the Request | 15 // Base interface for providing developers with access to the fetch |
| 16 // information associated with a background fetch. | 16 // information associated with a background fetch. |
| 17 class BackgroundFetchRequest : public GarbageCollected<BackgroundFetchRequest>, | 17 class BackgroundFetchFetch : public GarbageCollected<BackgroundFetchFetch>, |
| 18 public ScriptWrappable { | 18 public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 // Web Exposed attribute defined in the IDL file. | 22 // Web Exposed attribute defined in the IDL file. |
| 23 Request* request() const; | 23 Request* request() const; |
| 24 | 24 |
| 25 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 explicit BackgroundFetchRequest(Request*); | 28 explicit BackgroundFetchFetch(Request*); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 Member<Request> m_request; | 31 Member<Request> m_request; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // BackgroundFetchRequest_h | 36 #endif // BackgroundFetchFetch_h |
| OLD | NEW |