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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h

Issue 2744873002: Implement the Request/Response bits of Background Fetch (Closed)
Patch Set: comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h
new file mode 100644
index 0000000000000000000000000000000000000000..11ef1afa40685596e283a98fee573274df8fd90f
--- /dev/null
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BackgroundFetchRequest_h
+#define BackgroundFetchRequest_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Request;
+
+// Base interface for providing developers with access to the Request
+// information associated with a background fetch.
+class BackgroundFetchRequest : public GarbageCollected<BackgroundFetchRequest>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ // Web Exposed attribute defined in the IDL file.
+ Request* request() const;
+
+ DECLARE_VIRTUAL_TRACE();
+
+ protected:
+ explicit BackgroundFetchRequest(Request*);
+
+ private:
+ Member<Request> m_request;
+};
+
+} // namespace blink
+
+#endif // BackgroundFetchRequest_h

Powered by Google App Engine
This is Rietveld 408576698