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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 /* 1 /*
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void cancel(); 60 void cancel();
61 void cancel(const ResourceError&); 61 void cancel(const ResourceError&);
62 void cancelIfNotFinishing(); 62 void cancelIfNotFinishing();
63 63
64 Resource* cachedResource() { return m_resource.get(); } 64 Resource* cachedResource() { return m_resource.get(); }
65 const ResourceRequest& originalRequest() const { return m_originalRequest; } 65 const ResourceRequest& originalRequest() const { return m_originalRequest; }
66 66
67 void setDefersLoading(bool); 67 void setDefersLoading(bool);
68 bool defersLoading() const { return m_defersLoading; } 68 bool defersLoading() const { return m_defersLoading; }
69 69
70 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver> ); 70 void attachThreadedDataReceiver(RawPtr<ThreadedDataReceiver>);
71 71
72 void releaseResources(); 72 void releaseResources();
73 73
74 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); 74 void didChangePriority(ResourceLoadPriority, int intraPriorityValue);
75 75
76 // WebURLLoaderClient 76 // WebURLLoaderClient
77 void willFollowRedirect(WebURLLoader*, WebURLRequest&, const WebURLResponse& redirectResponse) override; 77 void willFollowRedirect(WebURLLoader*, WebURLRequest&, const WebURLResponse& redirectResponse) override;
78 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override; 78 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
79 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; 79 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override;
80 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override; 80 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 enum ConnectionState { 127 enum ConnectionState {
128 ConnectionStateNew, 128 ConnectionStateNew,
129 ConnectionStateStarted, 129 ConnectionStateStarted,
130 ConnectionStateReceivedResponse, 130 ConnectionStateReceivedResponse,
131 ConnectionStateReceivingData, 131 ConnectionStateReceivingData,
132 ConnectionStateFinishedLoading, 132 ConnectionStateFinishedLoading,
133 ConnectionStateCanceled, 133 ConnectionStateCanceled,
134 ConnectionStateFailed, 134 ConnectionStateFailed,
135 }; 135 };
136 136
137 RefPtrWillBeMember<Resource> m_resource; 137 Member<Resource> m_resource;
138 ResourceLoaderState m_state; 138 ResourceLoaderState m_state;
139 139
140 // Used for sanity checking to make sure we don't experience illegal state 140 // Used for sanity checking to make sure we don't experience illegal state
141 // transitions. 141 // transitions.
142 ConnectionState m_connectionState; 142 ConnectionState m_connectionState;
143 }; 143 };
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif 147 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698