Commit 11999f37 authored by Colin Blundell's avatar Colin Blundell Committed by Commit Bot

[Captive Portal] Componentize CaptivePortalURLLoaderThrottle

This class isn't actually needed as part of the ongoing componentization
of SSLErrorHandler, but it makes more sense for it to live with all of
its peer code in //components than to remain stranded in //chrome
while all the rest of the guts of //chrome/browser/captive_portal has
been componentized.

TBR=jochen@chromium.org

Change-Id: Ia2b2d7baa26910325a11916f46e388e64a93b550
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2019444
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735864}
parent 29bb11fd
...@@ -4481,8 +4481,6 @@ jumbo_static_library("browser") { ...@@ -4481,8 +4481,6 @@ jumbo_static_library("browser") {
sources += [ sources += [
"captive_portal/captive_portal_service_factory.cc", "captive_portal/captive_portal_service_factory.cc",
"captive_portal/captive_portal_service_factory.h", "captive_portal/captive_portal_service_factory.h",
"captive_portal/captive_portal_url_loader_throttle.cc",
"captive_portal/captive_portal_url_loader_throttle.h",
"ssl/captive_portal_metrics_recorder.cc", "ssl/captive_portal_metrics_recorder.cc",
"ssl/captive_portal_metrics_recorder.h", "ssl/captive_portal_metrics_recorder.h",
] ]
......
...@@ -493,8 +493,8 @@ ...@@ -493,8 +493,8 @@
#endif #endif
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
#include "chrome/browser/captive_portal/captive_portal_url_loader_throttle.h"
#include "components/captive_portal/content/captive_portal_tab_helper.h" #include "components/captive_portal/content/captive_portal_tab_helper.h"
#include "components/captive_portal/content/captive_portal_url_loader_throttle.h"
#endif #endif
#if BUILDFLAG(ENABLE_NACL) #if BUILDFLAG(ENABLE_NACL)
......
...@@ -16,6 +16,8 @@ source_set("content") { ...@@ -16,6 +16,8 @@ source_set("content") {
"captive_portal_tab_helper.h", "captive_portal_tab_helper.h",
"captive_portal_tab_reloader.cc", "captive_portal_tab_reloader.cc",
"captive_portal_tab_reloader.h", "captive_portal_tab_reloader.h",
"captive_portal_url_loader_throttle.cc",
"captive_portal_url_loader_throttle.h",
] ]
} }
...@@ -32,6 +34,7 @@ source_set("content") { ...@@ -32,6 +34,7 @@ source_set("content") {
deps = [ deps = [
"//components/embedder_support", "//components/embedder_support",
"//content/public/browser", "//content/public/browser",
"//third_party/blink/public/common",
] ]
} }
......
...@@ -7,5 +7,6 @@ include_rules = [ ...@@ -7,5 +7,6 @@ include_rules = [
"+content/public/test", "+content/public/test",
"+services/network/public/cpp", "+services/network/public/cpp",
"+net", "+net",
"+third_party/blink/public/common",
"+url", "+url",
] ]
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "chrome/browser/captive_portal/captive_portal_url_loader_throttle.h" #include "components/captive_portal/content/captive_portal_url_loader_throttle.h"
#include "components/captive_portal/content/captive_portal_tab_helper.h" #include "components/captive_portal/content/captive_portal_tab_helper.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_ #ifndef COMPONENTS_CAPTIVE_PORTAL_CONTENT_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_
#define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_ #define COMPONENTS_CAPTIVE_PORTAL_CONTENT_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#include "third_party/blink/public/common/loader/url_loader_throttle.h" #include "third_party/blink/public/common/loader/url_loader_throttle.h"
...@@ -25,4 +25,4 @@ class CaptivePortalURLLoaderThrottle : public blink::URLLoaderThrottle { ...@@ -25,4 +25,4 @@ class CaptivePortalURLLoaderThrottle : public blink::URLLoaderThrottle {
bool is_captive_portal_window_; bool is_captive_portal_window_;
}; };
#endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_ #endif // COMPONENTS_CAPTIVE_PORTAL_CONTENT_CAPTIVE_PORTAL_URL_LOADER_THROTTLE_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment