diff options
author | zhenw@chromium.org <zhenw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 22:22:08 +0000 |
---|---|---|
committer | zhenw@chromium.org <zhenw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 22:22:08 +0000 |
commit | 6f2ac77a4b95f3e6d0406161c65912e769ef3145 (patch) | |
tree | c146c9fa97558a928f4dd3600bb84006097d1249 /content/browser/transition_request_manager.h | |
parent | e5dc52f13f6608d8fad23f736c9219f8ea7087a8 (diff) | |
download | chromium_src-6f2ac77a4b95f3e6d0406161c65912e769ef3145.zip chromium_src-6f2ac77a4b95f3e6d0406161c65912e769ef3145.tar.gz chromium_src-6f2ac77a4b95f3e6d0406161c65912e769ef3145.tar.bz2 |
Navigation transitions: Parse out transition-entering-stylesheet link headers.
transition-entering-stylesheet is parsed out from the response header of the incoming page and passed to the Java side.
Design doc: https://docs.google.com/a/chromium.org/document/d/17jg1RRL3RI969cLwbKBIcoGDsPwqaEdBxafGNYGwiY4/edit#
Implementation details: https://docs.google.com/a/chromium.org/document/d/1kREPtFJaeLoDKwrfmrYTD7DHCdxX1RzFBga2gNY8lyE/edit#heading=h.bng2kpmyvxq5
BUG=370696
Review URL: https://codereview.chromium.org/387703004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/transition_request_manager.h')
-rw-r--r-- | content/browser/transition_request_manager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/content/browser/transition_request_manager.h b/content/browser/transition_request_manager.h index 9ef969b..48be189 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. |