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

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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7fc27d390617e4db4e5f60d176123f65febca2bf..9456a061c3decc4c2d2fc94c887ce39efd3d0913 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;
}
@@ -317,6 +322,9 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams()
override;
base::FilePath GetLoggingFileName() override;
+ std::vector<std::unique_ptr<content::URLLoaderThrottle>>
+ CreateURLLoaderThrottles(
+ const base::Callback<content::WebContents*()>& wc_getter) override;
private:
friend class DisableWebRtcEncryptionFlagTest;
@@ -372,6 +380,8 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
service_manager::BinderRegistry gpu_binder_registry_;
+ scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_;
+
base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698