Index: chrome/browser/renderer_host/safe_browsing_resource_throttle.h |
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_throttle.h b/chrome/browser/renderer_host/safe_browsing_resource_throttle.h |
index 5246f9998e588fd513b6d51dada74e564a30decb..03dd02f377d541e728b59e5ec44734fdbf370333 100644 |
--- a/chrome/browser/renderer_host/safe_browsing_resource_throttle.h |
+++ b/chrome/browser/renderer_host/safe_browsing_resource_throttle.h |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/safe_browsing/database_manager.h" |
#include "chrome/browser/safe_browsing/ui_manager.h" |
#include "content/public/browser/resource_throttle.h" |
+#include "content/public/common/resource_type.h" |
class ResourceDispatcherHost; |
@@ -49,7 +50,7 @@ class SafeBrowsingResourceThrottle |
public base::SupportsWeakPtr<SafeBrowsingResourceThrottle> { |
public: |
SafeBrowsingResourceThrottle(const net::URLRequest* request, |
- bool is_subresource, |
+ content::ResourceType resource_type, |
SafeBrowsingService* safe_browsing); |
// content::ResourceThrottle implementation (called on IO thread): |
@@ -58,8 +59,9 @@ class SafeBrowsingResourceThrottle |
virtual const char* GetNameForLogging() const OVERRIDE; |
// SafeBrowsingDabaseManager::Client implementation (called on IO thread): |
- virtual void OnCheckBrowseUrlResult( |
- const GURL& url, SBThreatType result) OVERRIDE; |
+ virtual void OnCheckBrowseUrlResult(const GURL& url, |
+ SBThreatType result, |
+ const std::string& metadata) OVERRIDE; |
private: |
// Describes what phase of the check a throttle is in. |
@@ -127,6 +129,7 @@ class SafeBrowsingResourceThrottle |
scoped_refptr<SafeBrowsingUIManager> ui_manager_; |
const net::URLRequest* request_; |
bool is_subresource_; |
+ bool is_subframe_; |
sky
2014/09/22 21:37:27
nit: const (same may go for is_subresource_).
mattm
2014/09/22 22:22:20
Done.
|
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); |
}; |