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

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

Issue 2359893002: Open |current_url| in Chrome when |previous_url| is empty (Closed)
Patch Set: Created 4 years, 3 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 | « 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 7a9fba361c86057b970c708f38114ca8805a8fdf..ea16ade7733c944972773010359ccd677454a53d 100644
--- a/chrome/browser/chromeos/arc/arc_navigation_throttle.h
+++ b/chrome/browser/chromeos/arc/arc_navigation_throttle.h
@@ -17,6 +17,8 @@
#include "content/public/browser/navigation_throttle.h"
#include "ui/gfx/image/image.h"
+class GURL;
+
namespace content {
class NavigationHandle;
} // namespace content
@@ -53,6 +55,9 @@ class ArcNavigationThrottle : public content::NavigationThrottle {
const ShowIntentPickerCallback& show_intent_picker_cb);
~ArcNavigationThrottle() override;
+ static bool ShouldOverrideUrlLoadingForTesting(const GURL& previous_url,
+ const GURL& current_url);
+
private:
// content::Navigation implementation:
NavigationThrottle::ThrottleCheckResult WillStartRequest() override;
@@ -66,10 +71,6 @@ class ArcNavigationThrottle : public content::NavigationThrottle {
void OnIntentPickerClosed(mojo::Array<mojom::UrlHandlerInfoPtr> handlers,
size_t selected_app_index,
CloseReason close_reason);
- // Compares the host name of the referrer and target URL to decide whether
- // the navigation needs to be overriden.
- bool ShouldOverrideUrlLoading(content::NavigationHandle* navigation_handle);
-
// 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().
« 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