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

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

Issue 1106263003: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/filesystem/DOMFileSystemBase.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 "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/weborigin/KURL.h" 10 #include "platform/weborigin/KURL.h"
11 #include "public/platform/WebServiceWorkerRequest.h"
11 #include "wtf/PassRefPtr.h" 12 #include "wtf/PassRefPtr.h"
12 #include "wtf/text/AtomicString.h" 13 #include "wtf/text/AtomicString.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class BlobDataHandle; 17 class BlobDataHandle;
17 class BodyStreamBuffer; 18 class BodyStreamBuffer;
18 class FetchHeaderList; 19 class FetchHeaderList;
19 class WebServiceWorkerResponse; 20 class WebServiceWorkerResponse;
20 21
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status Message; } 56 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status Message; }
56 void setBlobDataHandle(PassRefPtr<BlobDataHandle>); 57 void setBlobDataHandle(PassRefPtr<BlobDataHandle>);
57 void setMIMEType(const String& type) { m_mimeType = type; } 58 void setMIMEType(const String& type) { m_mimeType = type; }
58 59
59 // If the type is Default, replaces |m_buffer| and sets |m_blobDataHandle| 60 // If the type is Default, replaces |m_buffer| and sets |m_blobDataHandle|
60 // to nullptr. If the type is Basic or CORS, replaces |m_buffer| and sets 61 // to nullptr. If the type is Basic or CORS, replaces |m_buffer| and sets
61 // |m_blobDataHandle| to nullptr, and does the same operation to 62 // |m_blobDataHandle| to nullptr, and does the same operation to
62 // |m_internalResponse|. If the type is Error or Opaque, does nothing. 63 // |m_internalResponse|. If the type is Error or Opaque, does nothing.
63 void replaceBodyStreamBuffer(BodyStreamBuffer*); 64 void replaceBodyStreamBuffer(BodyStreamBuffer*);
64 65
65 void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&); 66 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&);
66 67
67 DECLARE_TRACE(); 68 DECLARE_TRACE();
68 69
69 private: 70 private:
70 FetchResponseData(Type, unsigned short, AtomicString); 71 FetchResponseData(Type, unsigned short, AtomicString);
71 72
72 Type m_type; 73 Type m_type;
73 OwnPtr<TerminationReason> m_terminationReason; 74 OwnPtr<TerminationReason> m_terminationReason;
74 KURL m_url; 75 KURL m_url;
75 unsigned short m_status; 76 unsigned short m_status;
76 AtomicString m_statusMessage; 77 AtomicString m_statusMessage;
77 Member<FetchHeaderList> m_headerList; 78 Member<FetchHeaderList> m_headerList;
78 RefPtr<BlobDataHandle> m_blobDataHandle; 79 RefPtr<BlobDataHandle> m_blobDataHandle;
79 Member<FetchResponseData> m_internalResponse; 80 Member<FetchResponseData> m_internalResponse;
80 Member<BodyStreamBuffer> m_buffer; 81 Member<BodyStreamBuffer> m_buffer;
81 String m_mimeType; 82 String m_mimeType;
82 }; 83 };
83 84
84 } // namespace blink 85 } // namespace blink
85 86
86 #endif // FetchResponseData_h 87 #endif // FetchResponseData_h
OLDNEW
« no previous file with comments | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/filesystem/DOMFileSystemBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698