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

Side by Side Diff: content/public/browser/resource_request_info.h

Issue 1041993004: content::ResourceDispatcherHostImpl changes for stale-while-revalidate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-yhirano-patch
Patch Set: Suppress duplicate async revalidations to the same URL. Created 5 years, 6 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/resource_type.h" 10 #include "content/public/common/resource_type.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Returns false if there is NOT an associated render frame. 117 // Returns false if there is NOT an associated render frame.
118 virtual bool GetAssociatedRenderFrame(int* render_process_id, 118 virtual bool GetAssociatedRenderFrame(int* render_process_id,
119 int* render_frame_id) const = 0; 119 int* render_frame_id) const = 0;
120 120
121 // Returns true if this is associated with an asynchronous request. 121 // Returns true if this is associated with an asynchronous request.
122 virtual bool IsAsync() const = 0; 122 virtual bool IsAsync() const = 0;
123 123
124 // Whether this is a download. 124 // Whether this is a download.
125 virtual bool IsDownload() const = 0; 125 virtual bool IsDownload() const = 0;
126 126
127 // Whether this is an async revalidation.
128 virtual bool IsAsyncRevalidation() const = 0;
129
127 protected: 130 protected:
128 virtual ~ResourceRequestInfo() {} 131 virtual ~ResourceRequestInfo() {}
129 }; 132 };
130 133
131 } // namespace content 134 } // namespace content
132 135
133 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 136 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« content/browser/loader/resource_dispatcher_host_impl.cc ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698