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

Unified Diff: content/browser/transition_request_manager.h

Issue 387703004: Navigation transitions: Parse out transition-entering-stylesheet link headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fix Created 6 years, 5 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
Index: content/browser/transition_request_manager.h
diff --git a/content/browser/transition_request_manager.h b/content/browser/transition_request_manager.h
index 9ef969b49dba26cbdaad5a97f9df2c9161a3133a..48be189ca50e0dfb7016dd909116bba22187f122 100644
--- a/content/browser/transition_request_manager.h
+++ b/content/browser/transition_request_manager.h
@@ -7,13 +7,20 @@
#include <set>
#include <utility>
+#include <vector>
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
+#include "url/gurl.h"
template <typename T>
struct DefaultSingletonTraits;
+namespace net {
+class HttpResponseHeaders;
+}
+
namespace content {
// TransitionRequestManager is used to handle bookkeeping for transition
@@ -27,6 +34,13 @@ class TransitionRequestManager {
// Returns the singleton instance.
CONTENT_EXPORT static TransitionRequestManager* GetInstance();
+ // Parses out any transition-entering-stylesheet link headers from the
+ // response headers.
+ CONTENT_EXPORT static void ParseTransitionStylesheetsFromHeaders(
+ const scoped_refptr<net::HttpResponseHeaders>& headers,
+ std::vector<GURL>& entering_stylesheets,
+ const GURL& resolve_address);
+
// Returns whether the RenderFrameHost specified by the given IDs currently
// has a pending transition request. If so, we will have to delay the
// response until the embedder resumes the request.
« no previous file with comments | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/browser/transition_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698