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

Unified Diff: content/browser/transition_request_manager.h

Issue 689123003: Revert of Navigation transitions (web to native app): Pass data after starting provisional load ... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/browser/transition_browsertest.cc ('k') | content/browser/transition_request_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/transition_request_manager.h
diff --git a/content/browser/transition_request_manager.h b/content/browser/transition_request_manager.h
index 65b57924134e790207ed6297c7abdd13741e77eb..3db4d87e64d91ceb461b1bb20c66599bab38fb39 100644
--- a/content/browser/transition_request_manager.h
+++ b/content/browser/transition_request_manager.h
@@ -13,7 +13,6 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
-#include "content/public/common/transition_element.h"
#include "ui/gfx/geometry/rect.h"
#include "url/gurl.h"
@@ -34,7 +33,8 @@
std::string markup;
std::string css_selector;
- std::vector<TransitionElement> elements;
+ std::vector<std::string> names;
+ std::vector<gfx::Rect> rects;
scoped_refptr<net::HttpResponseHeaders> response_headers;
GURL request_url;
};
@@ -57,11 +57,10 @@
std::vector<GURL>& entering_stylesheets,
const GURL& resolve_address);
- // Get pending transition request data from RenderFrameHost specified by the
- // given IDs and return true if the data exists. For web to web transition, we
- // will have to delay the response until the embedder resumes the request if
- // the data exists.
- CONTENT_EXPORT bool GetPendingTransitionRequest(
+ // Returns whether the RenderFrameHost specified by the given IDs currently
+ // has any pending transition request data. If so, we will have to delay the
+ // response until the embedder resumes the request.
+ CONTENT_EXPORT bool HasPendingTransitionRequest(
int render_process_id,
int render_frame_id,
const GURL& request_url,
@@ -75,17 +74,14 @@
const std::string& allowed_destination_host_pattern,
const std::string& css_selector,
const std::string& markup,
- const std::vector<TransitionElement>& elements);
+ const std::vector<std::string>& names,
+ const std::vector<gfx::Rect>& rects);
CONTENT_EXPORT void AddPendingTransitionRequestDataForTesting(
int render_process_id,
int render_frame_id);
CONTENT_EXPORT void ClearPendingTransitionRequestData(int render_process_id,
int render_frame_id);
-
- // The maximum number of elements is meant to avoid passing arbitrarily large
- // amount of objects across the IPC boundary.
- static const int kMaxNumOfElements = 1024;
private:
class TransitionRequestData {
@@ -95,7 +91,8 @@
void AddEntry(const std::string& allowed_destination_host_pattern,
const std::string& selector,
const std::string& markup,
- const std::vector<TransitionElement>& elements);
+ const std::vector<std::string>& names,
+ const std::vector<gfx::Rect>& rects);
bool FindEntry(const GURL& request_url,
TransitionLayerData* transition_data);
@@ -107,12 +104,14 @@
std::string allowed_destination_host_pattern;
std::string css_selector;
std::string markup;
- std::vector<TransitionElement> elements;
+ std::vector<std::string> names;
+ std::vector<gfx::Rect> rects;
AllowedEntry(const std::string& allowed_destination_host_pattern,
const std::string& css_selector,
const std::string& markup,
- const std::vector<TransitionElement>& elements);
+ const std::vector<std::string>& names,
+ const std::vector<gfx::Rect>& rects);
~AllowedEntry();
};
std::vector<AllowedEntry> allowed_entries_;
« no previous file with comments | « content/browser/transition_browsertest.cc ('k') | content/browser/transition_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698