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

Unified Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . Created 3 years, 7 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
Index: chrome/renderer/chrome_content_renderer_client.h
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
index dd11c11af11c2a34f816048d36b27b6fc1cfbcc3..6129a48d9945ddf1ff2889d00b4cfdd2076b43b4 100644
--- a/chrome/renderer/chrome_content_renderer_client.h
+++ b/chrome/renderer/chrome_content_renderer_client.h
@@ -16,6 +16,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/strings/string16.h"
+#include "chrome/common/safe_browsing.mojom.h"
#include "chrome/renderer/media/chrome_key_systems_provider.h"
#include "components/rappor/public/interfaces/rappor_recorder.mojom.h"
#include "components/spellcheck/spellcheck_build_features.h"
@@ -136,10 +137,12 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
bool is_initial_navigation,
bool is_server_redirect,
bool* send_referrer) override;
- bool WillSendRequest(blink::WebLocalFrame* frame,
- ui::PageTransition transition_type,
- const blink::WebURL& url,
- GURL* new_url) override;
+ bool WillSendRequest(
+ blink::WebLocalFrame* frame,
+ ui::PageTransition transition_type,
+ const blink::WebURL& url,
+ std::vector<std::unique_ptr<content::URLLoaderThrottle>>* throttles,
+ GURL* new_url) override;
bool IsPrefetchOnly(content::RenderFrame* render_frame,
const blink::WebURLRequest& request) override;
unsigned long long VisitedLinkHash(const char* canonical_url,
@@ -242,6 +245,8 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
chrome::ChromeKeySystemsProvider key_systems_provider_;
+ chrome::mojom::SafeBrowsingPtr safe_browsing_;
+
#if BUILDFLAG(ENABLE_SPELLCHECK)
std::unique_ptr<SpellCheck> spellcheck_;
#endif

Powered by Google App Engine
This is Rietveld 408576698