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

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

Issue 2458073003: Modifies how Arc's throttle handles redirections (Closed)
Patch Set: Rebasing 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/intent_helper/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/intent_helper/arc_navigation_throttle.h
diff --git a/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h b/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h
index a90308338e3c43e3af199c9f10ef3b044812e627..0c7cf3e80e3819f12dc9b424102db64f90af7606 100644
--- a/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h
+++ b/chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h
@@ -17,8 +17,7 @@
#include "content/public/browser/navigation_throttle.h"
#include "mojo/public/cpp/bindings/array.h"
#include "ui/gfx/image/image.h"
-
-class GURL;
+#include "url/gurl.h"
namespace content {
class NavigationHandle;
@@ -95,6 +94,7 @@ class ArcNavigationThrottle : public content::NavigationThrottle {
void OnIntentPickerClosed(mojo::Array<mojom::IntentHandlerInfoPtr> handlers,
const 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().
@@ -106,6 +106,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/intent_helper/arc_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698