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

Side by Side Diff: Source/modules/serviceworkers/RespondWithObserver.h

Issue 651503002: Clean up forward declarations in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 RespondWithObserver_h 5 #ifndef RespondWithObserver_h
6 #define RespondWithObserver_h 6 #define RespondWithObserver_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "platform/heap/Handle.h"
10 #include "public/platform/WebURLRequest.h" 9 #include "public/platform/WebURLRequest.h"
11 #include "wtf/Forward.h"
12 #include "wtf/RefCounted.h"
13 10
14 namespace blink { 11 namespace blink {
15 12
16 class ExceptionState; 13 class ExceptionState;
17 class ExecutionContext; 14 class ExecutionContext;
18 class Response;
19 class ScriptState; 15 class ScriptState;
20 class ScriptValue; 16 class ScriptValue;
21 17
22 // This class observes the service worker's handling of a FetchEvent and 18 // This class observes the service worker's handling of a FetchEvent and
23 // notifies the client. 19 // notifies the client.
24 class RespondWithObserver final : public GarbageCollectedFinalized<RespondWithOb server>, public ContextLifecycleObserver { 20 class RespondWithObserver final : public GarbageCollectedFinalized<RespondWithOb server>, public ContextLifecycleObserver {
25 public: 21 public:
26 static RespondWithObserver* create(ExecutionContext*, int eventID, WebURLReq uest::FetchRequestMode, WebURLRequest::FrameType); 22 static RespondWithObserver* create(ExecutionContext*, int eventID, WebURLReq uest::FetchRequestMode, WebURLRequest::FrameType);
27 23
28 virtual void contextDestroyed() override; 24 virtual void contextDestroyed() override;
(...skipping 18 matching lines...) Expand all
47 WebURLRequest::FetchRequestMode m_requestMode; 43 WebURLRequest::FetchRequestMode m_requestMode;
48 WebURLRequest::FrameType m_frameType; 44 WebURLRequest::FrameType m_frameType;
49 45
50 enum State { Initial, Pending, Done }; 46 enum State { Initial, Pending, Done };
51 State m_state; 47 State m_state;
52 }; 48 };
53 49
54 } // namespace blink 50 } // namespace blink
55 51
56 #endif // RespondWithObserver_h 52 #endif // RespondWithObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698