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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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 Response_h 5 #ifndef Response_h
6 #define Response_h 6 #define Response_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 String url() const; 52 String url() const;
53 unsigned short status() const; 53 unsigned short status() const;
54 bool ok() const; 54 bool ok() const;
55 String statusText() const; 55 String statusText() const;
56 Headers* headers() const; 56 Headers* headers() const;
57 57
58 // From Response.idl: 58 // From Response.idl:
59 // This function must be called with entering an appropriate V8 context. 59 // This function must be called with entering an appropriate V8 context.
60 Response* clone(ScriptState*, ExceptionState&); 60 Response* clone(ScriptState*, ExceptionState&);
61 61
62 // ActiveScriptWrappable 62 // ScriptWrappable
63 bool hasPendingActivity() const final; 63 bool hasPendingActivity() const final;
64 64
65 // Does not call response.setBlobDataHandle(). 65 // Does not call response.setBlobDataHandle().
66 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */); 66 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response */);
67 67
68 bool hasBody() const; 68 bool hasBody() const;
69 BodyStreamBuffer* bodyBuffer() override { return m_response->buffer(); } 69 BodyStreamBuffer* bodyBuffer() override { return m_response->buffer(); }
70 // Returns the BodyStreamBuffer of |m_response|. This method doesn't check 70 // Returns the BodyStreamBuffer of |m_response|. This method doesn't check
71 // the internal response of |m_response| even if |m_response| has it. 71 // the internal response of |m_response| even if |m_response| has it.
72 const BodyStreamBuffer* bodyBuffer() const override { return m_response->buf fer(); } 72 const BodyStreamBuffer* bodyBuffer() const override { return m_response->buf fer(); }
(...skipping 16 matching lines...) Expand all
89 void installBody(); 89 void installBody();
90 void refreshBody(ScriptState*); 90 void refreshBody(ScriptState*);
91 91
92 const Member<FetchResponseData> m_response; 92 const Member<FetchResponseData> m_response;
93 const Member<Headers> m_headers; 93 const Member<Headers> m_headers;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // Response_h 98 #endif // Response_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Body.h ('k') | third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698