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

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

Issue 2389643002: Reflow comments in core/fetch (Closed)
Patch Set: yoavs comments Created 4 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int dataLength, 104 int dataLength,
105 int encodedDataLength); 105 int encodedDataLength);
106 virtual void dispatchDidFinishLoading(unsigned long identifier, 106 virtual void dispatchDidFinishLoading(unsigned long identifier,
107 double finishTime, 107 double finishTime,
108 int64_t encodedDataLength); 108 int64_t encodedDataLength);
109 virtual void dispatchDidFail(unsigned long identifier, 109 virtual void dispatchDidFail(unsigned long identifier,
110 const ResourceError&, 110 const ResourceError&,
111 bool isInternalRequest); 111 bool isInternalRequest);
112 112
113 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } 113 virtual bool shouldLoadNewResource(Resource::Type) const { return false; }
114 // Called when a resource load is first requested, which may not be when the l oad actually begins. 114 // Called when a resource load is first requested, which may not be when the
115 // load actually begins.
115 virtual void willStartLoadingResource(unsigned long identifier, 116 virtual void willStartLoadingResource(unsigned long identifier,
116 ResourceRequest&, 117 ResourceRequest&,
117 Resource::Type); 118 Resource::Type);
118 virtual void didLoadResource(Resource*); 119 virtual void didLoadResource(Resource*);
119 120
120 virtual void addResourceTiming(const ResourceTimingInfo&); 121 virtual void addResourceTiming(const ResourceTimingInfo&);
121 virtual bool allowImage(bool, const KURL&) const { return false; } 122 virtual bool allowImage(bool, const KURL&) const { return false; }
122 virtual bool canRequest(Resource::Type, 123 virtual bool canRequest(Resource::Type,
123 const ResourceRequest&, 124 const ResourceRequest&,
124 const KURL&, 125 const KURL&,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 164 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
164 165
165 protected: 166 protected:
166 FetchContext() {} 167 FetchContext() {}
167 }; 168 };
168 169
169 } // namespace blink 170 } // namespace blink
170 171
171 #endif 172 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/DocumentResource.cpp ('k') | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698