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

Unified Diff: chrome/browser/chromeos/arc/arc_navigation_throttle.h

Issue 2471783005: Modifies how Arc's throttle handles redirections (Closed)
Patch Set: Documenting differences on M-55 implementation. Created 4 years, 1 month 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 | « no previous file | chrome/browser/chromeos/arc/arc_navigation_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_navigation_throttle.h
diff --git a/chrome/browser/chromeos/arc/arc_navigation_throttle.h b/chrome/browser/chromeos/arc/arc_navigation_throttle.h
index 18be29a51e610dde611914d4536bbae3b2aa11d1..395d3923ba42449fce62b8e6ef9f572b19947249 100644
--- a/chrome/browser/chromeos/arc/arc_navigation_throttle.h
+++ b/chrome/browser/chromeos/arc/arc_navigation_throttle.h
@@ -16,8 +16,7 @@
#include "components/arc/intent_helper/activity_icon_loader.h"
#include "content/public/browser/navigation_throttle.h"
#include "ui/gfx/image/image.h"
-
-class GURL;
+#include "url/gurl.h"
namespace content {
class NavigationHandle;
@@ -80,6 +79,7 @@ class ArcNavigationThrottle : public content::NavigationThrottle {
void OnIntentPickerClosed(mojo::Array<mojom::IntentHandlerInfoPtr> handlers,
std::string selected_app_package,
CloseReason close_reason);
+ GURL GetStartingGURL() const;
// A callback object that allow us to display an IntentPicker when Run() is
// executed, it also allow us to report the user's selection back to
// OnIntentPickerClosed().
@@ -91,6 +91,9 @@ class ArcNavigationThrottle : public content::NavigationThrottle {
// popping up the dialog multiple times on chains of multiple redirects.
CloseReason previous_user_action_;
+ // Keeps a referrence to the starting GURL.
+ GURL starting_gurl_;
+
// This has to be the last member of the class.
base::WeakPtrFactory<ArcNavigationThrottle> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698