Index: chrome/renderer/safe_browsing/safe_browsing_renderer_throttle.h |
diff --git a/chrome/renderer/safe_browsing/safe_browsing_url_loader_throttle.h b/chrome/renderer/safe_browsing/safe_browsing_renderer_throttle.h |
similarity index 61% |
rename from chrome/renderer/safe_browsing/safe_browsing_url_loader_throttle.h |
rename to chrome/renderer/safe_browsing/safe_browsing_renderer_throttle.h |
index aea48f73f172faf6f2f7374acefd4301d7d10c72..ac2290f926f3855c12d7459b03da9f87bbc4b644 100644 |
--- a/chrome/renderer/safe_browsing/safe_browsing_url_loader_throttle.h |
+++ b/chrome/renderer/safe_browsing/safe_browsing_renderer_throttle.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
-#define CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
+#ifndef CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_RENDERER_THROTTLE_H_ |
+#define CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_RENDERER_THROTTLE_H_ |
#include "base/memory/weak_ptr.h" |
#include "chrome/common/safe_browsing.mojom.h" |
@@ -17,18 +17,18 @@ class SafeBrowsing; |
namespace safe_browsing { |
-// SafeBrowsingURLLoaderThrottle queries SafeBrowsing to determine whether the |
-// URL and also redirect URLs are safe to load. It defers response processing |
-// until all URL checks are completed; cancels the load if any URLs turn out to |
-// be bad. |
-class SafeBrowsingURLLoaderThrottle : public content::URLLoaderThrottle { |
+// SafeBrowsingRendererThrottle is used in renderer processes to query |
+// SafeBrowsing and determine whether a URL and its redirect URLs are safe to |
+// load. It defers response processing until all URL checks are completed; |
+// cancels the load if any URLs turn out to be bad. |
+class SafeBrowsingRendererThrottle : public content::URLLoaderThrottle { |
public: |
// |safe_browsing| must stay alive until WillStartRequest() (if it is called) |
// or the end of this object. |
// |render_frame_id| is used for displaying SafeBrowsing UI when necessary. |
- SafeBrowsingURLLoaderThrottle(chrome::mojom::SafeBrowsing* safe_browsing, |
- int render_frame_id); |
- ~SafeBrowsingURLLoaderThrottle() override; |
+ SafeBrowsingRendererThrottle(chrome::mojom::SafeBrowsing* safe_browsing, |
+ int render_frame_id); |
+ ~SafeBrowsingRendererThrottle() override; |
// content::URLLoaderThrottle implementation. |
void WillStartRequest(const GURL& url, |
@@ -52,9 +52,9 @@ class SafeBrowsingURLLoaderThrottle : public content::URLLoaderThrottle { |
size_t pending_checks_ = 0; |
bool blocked_ = false; |
- base::WeakPtrFactory<SafeBrowsingURLLoaderThrottle> weak_factory_; |
+ base::WeakPtrFactory<SafeBrowsingRendererThrottle> weak_factory_; |
}; |
} // namespace safe_browsing |
-#endif // CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
+#endif // CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_RENDERER_THROTTLE_H_ |