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

Side by Side Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchSettledFetch.h

Issue 2751523008: Update Background Fetch IDLs following spec changes (Closed)
Patch Set: Update Background Fetch IDLs following spec changes 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 unified diff | Download patch
OLDNEW
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 BackgroundFetchSettledRequest_h 5 #ifndef BackgroundFetchSettledFetch_h
6 #define BackgroundFetchSettledRequest_h 6 #define BackgroundFetchSettledFetch_h
7 7
8 #include "modules/background_fetch/BackgroundFetchRequest.h" 8 #include "modules/background_fetch/BackgroundFetchFetch.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 class Response; 14 class Response;
15 15
16 // Interface for providing developers access to the Request/Response pairs when 16 // Interface for providing developers access to the Request/Response pairs when
17 // a background fetch has settled, either through the `backgroundfetched` event 17 // a background fetch has settled, either through the `backgroundfetched` event
18 // in case of success, or `backgroundfetchfail` in case of failure. 18 // in case of success, or `backgroundfetchfail` in case of failure.
19 class BackgroundFetchSettledRequest final : public BackgroundFetchRequest { 19 class BackgroundFetchSettledFetch final : public BackgroundFetchFetch {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 21
22 public: 22 public:
23 static BackgroundFetchSettledRequest* create(Request* request, 23 static BackgroundFetchSettledFetch* create(Request* request,
24 Response* response) { 24 Response* response) {
25 return new BackgroundFetchSettledRequest(request, response); 25 return new BackgroundFetchSettledFetch(request, response);
26 } 26 }
27 27
28 // Web Exposed attribute defined in the IDL file. 28 // Web Exposed attribute defined in the IDL file.
29 Response* response() const; 29 Response* response() const;
30 30
31 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
32 32
33 private: 33 private:
34 BackgroundFetchSettledRequest(Request*, Response*); 34 BackgroundFetchSettledFetch(Request*, Response*);
35 35
36 Member<Response> m_response; 36 Member<Response> m_response;
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // BackgroundFetchSettledRequest_h 41 #endif // BackgroundFetchSettledFetch_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698