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

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

Issue 1455693003: Add comment to BodyStreamBuffer accessors for Response class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/Response.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FetchResponseData_h 5 #ifndef FetchResponseData_h
6 #define FetchResponseData_h 6 #define FetchResponseData_h
7 7
8 #include "core/fetch/CrossOriginAccessControl.h" 8 #include "core/fetch/CrossOriginAccessControl.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 FetchResponseData* clone(ScriptState*); 53 FetchResponseData* clone(ScriptState*);
54 54
55 Type getType() const { return m_type; } 55 Type getType() const { return m_type; }
56 const KURL& url() const { return m_url; } 56 const KURL& url() const { return m_url; }
57 unsigned short status() const { return m_status; } 57 unsigned short status() const { return m_status; }
58 AtomicString statusMessage() const { return m_statusMessage; } 58 AtomicString statusMessage() const { return m_statusMessage; }
59 FetchHeaderList* headerList() const { return m_headerList.get(); } 59 FetchHeaderList* headerList() const { return m_headerList.get(); }
60 BodyStreamBuffer* buffer() const { return m_buffer; } 60 BodyStreamBuffer* buffer() const { return m_buffer; }
61 String mimeType() const; 61 String mimeType() const;
62 // Returns the BodyStreamBuffer of |m_internalResponse| if any. Otherwise,
63 // returns |m_buffer|.
62 BodyStreamBuffer* internalBuffer() const; 64 BodyStreamBuffer* internalBuffer() const;
63 String internalMIMEType() const; 65 String internalMIMEType() const;
64 int64_t responseTime() const { return m_responseTime; } 66 int64_t responseTime() const { return m_responseTime; }
65 String cacheStorageCacheName() const { return m_cacheStorageCacheName; } 67 String cacheStorageCacheName() const { return m_cacheStorageCacheName; }
66 const HTTPHeaderSet& corsExposedHeaderNames() const { return m_corsExposedHe aderNames; } 68 const HTTPHeaderSet& corsExposedHeaderNames() const { return m_corsExposedHe aderNames; }
67 69
68 void setURL(const KURL& url) { m_url = url; } 70 void setURL(const KURL& url) { m_url = url; }
69 void setStatus(unsigned short status) { m_status = status; } 71 void setStatus(unsigned short status) { m_status = status; }
70 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status Message; } 72 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status Message; }
71 void setMIMEType(const String& type) { m_mimeType = type; } 73 void setMIMEType(const String& type) { m_mimeType = type; }
(...skipping 26 matching lines...) Expand all
98 Member<BodyStreamBuffer> m_buffer; 100 Member<BodyStreamBuffer> m_buffer;
99 String m_mimeType; 101 String m_mimeType;
100 int64_t m_responseTime; 102 int64_t m_responseTime;
101 String m_cacheStorageCacheName; 103 String m_cacheStorageCacheName;
102 HTTPHeaderSet m_corsExposedHeaderNames; 104 HTTPHeaderSet m_corsExposedHeaderNames;
103 }; 105 };
104 106
105 } // namespace blink 107 } // namespace blink
106 108
107 #endif // FetchResponseData_h 109 #endif // FetchResponseData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698