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

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

Issue 1304063016: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const ResourceRequest& originalRequest() const { return m_originalRequest; } 62 const ResourceRequest& originalRequest() const { return m_originalRequest; }
63 63
64 void setDefersLoading(bool); 64 void setDefersLoading(bool);
65 bool defersLoading() const { return m_defersLoading; } 65 bool defersLoading() const { return m_defersLoading; }
66 66
67 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver> ); 67 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver> );
68 68
69 void releaseResources(); 69 void releaseResources();
70 70
71 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); 71 void didChangePriority(ResourceLoadPriority, int intraPriorityValue);
72 bool shouldUseIncreasedPriorities();
73 72
74 // WebURLLoaderClient 73 // WebURLLoaderClient
75 void willSendRequest(WebURLLoader*, WebURLRequest&, const WebURLResponse& re directResponse) override; 74 void willSendRequest(WebURLLoader*, WebURLRequest&, const WebURLResponse& re directResponse) override;
76 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override; 75 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
77 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; 76 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override;
78 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override; 77 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override;
79 void didReceiveData(WebURLLoader*, const char*, int, int encodedDataLength) override; 78 void didReceiveData(WebURLLoader*, const char*, int, int encodedDataLength) override;
80 void didReceiveCachedMetadata(WebURLLoader*, const char* data, int length) o verride; 79 void didReceiveCachedMetadata(WebURLLoader*, const char* data, int length) o verride;
81 void didFinishLoading(WebURLLoader*, double finishTime, int64_t encodedDataL ength) override; 80 void didFinishLoading(WebURLLoader*, double finishTime, int64_t encodedDataL ength) override;
82 void didFail(WebURLLoader*, const WebURLError&) override; 81 void didFail(WebURLLoader*, const WebURLError&) override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ResourceLoaderState m_state; 134 ResourceLoaderState m_state;
136 135
137 // Used for sanity checking to make sure we don't experience illegal state 136 // Used for sanity checking to make sure we don't experience illegal state
138 // transitions. 137 // transitions.
139 ConnectionState m_connectionState; 138 ConnectionState m_connectionState;
140 }; 139 };
141 140
142 } 141 }
143 142
144 #endif 143 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceLoadPriorityOptimizer.cpp ('k') | Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698