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

Unified Diff: chrome/browser/chrome_content_browser_client.h

Issue 2924723002: Network service: SafeBrowsing check for frame-resources from browser. (Closed)
Patch Set: . Created 3 years, 6 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/browser/chrome_content_browser_client.h
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
index eff95b9037cc489af64f88d8befdd3fffea71d13..995c63eaf65d3ed5c994b25edf79451535a4d165 100644
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -15,6 +15,7 @@
#include "base/callback.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
#include "content/public/browser/content_browser_client.h"
@@ -40,6 +41,10 @@ class BrowserContext;
class QuotaPermissionContext;
}
+namespace safe_browsing {
+class SafeBrowsingService;
+}
+
namespace user_prefs {
class PrefRegistrySyncable;
}
@@ -319,6 +324,9 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
void PerformExperimentalTaskSchedulerRedirections() override;
bool ShouldRedirectDOMStorageTaskRunner() override;
bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
+ std::vector<std::unique_ptr<content::URLLoaderThrottle>>
+ CreateURLLoaderThrottles(
+ const base::Callback<content::WebContents*()>& wc_getter) override;
private:
friend class DisableWebRtcEncryptionFlagTest;
@@ -374,6 +382,8 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
service_manager::BinderRegistry gpu_binder_registry_;
+ scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
vakh (use Gerrit instead) 2017/06/15 21:52:58 I'd prefer calling this safe_browsing_service_ or
yzshen1 2017/06/16 21:27:09 Done.
+
base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);

Powered by Google App Engine
This is Rietveld 408576698