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

Unified Diff: net/url_request/url_request.h

Issue 7523042: Add a status message "Waiting for extension Foo..." when there's a request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/load_states.h ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index f6d53717c461a2416c231f14f193c0b595f1f00b..c5354e15230af5249ffdb3a62ac861964fa3d4d4 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -431,8 +431,13 @@ class NET_API URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) {
return extra_request_headers_;
}
- // Returns the current load state for the request.
- LoadState GetLoadState() const;
+ // Returns the current load state for the request. |param| is an optional
+ // parameter describing details related to the load state. Not all load states
+ // have a parameter.
+ LoadStateWithParam GetLoadState() const;
+ void SetLoadStateParam(const string16& param) {
+ load_state_param_ = param;
+ }
// Returns the current upload progress in bytes.
uint64 GetUploadProgress() const;
@@ -715,6 +720,11 @@ class NET_API URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) {
CookieOptions* options) const;
void NotifyReadCompleted(int bytes_read);
+ // Called when the delegate blocks or unblocks this request when intercepting
+ // certain requests.
+ void SetBlockedOnDelegate();
+ void SetUnblockedOnDelegate();
+
// Contextual information used for this request (can be NULL). This contains
// most of the dependencies which are shared between requests (disk cache,
// cookie store, socket pool, etc.)
@@ -775,6 +785,14 @@ class NET_API URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) {
// A globally unique identifier for this request.
const uint64 identifier_;
+ // True if this request is blocked waiting for the network delegate to resume
+ // it.
+ bool blocked_on_delegate_;
+
+ // An optional parameter that provides additional information about the load
+ // state. Only used with the LOAD_STATE_WAITING_FOR_DELEGATE state.
+ string16 load_state_param_;
+
base::debug::LeakTracker<URLRequest> leak_tracker_;
// Callback passed to the network delegate to notify us when a blocked request
« no previous file with comments | « net/base/load_states.h ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698