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

Side by Side Diff: components/subresource_filter/content/browser/content_subresource_filter_driver.h

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RenderFrameObserver::OnDestruct introduced by rebase. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER _DRIVER_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER _DRIVER_H_
7
8 #include "base/macros.h"
9 #include "components/subresource_filter/core/common/activation_state.h"
10
11 namespace content {
12 class RenderFrameHost;
13 } // namespace content
14
15 namespace subresource_filter {
16
17 // The content-layer-specific driver for the subresource filter component. There
18 // is one instance per RenderFrameHost.
19 class ContentSubresourceFilterDriver {
20 public:
21 explicit ContentSubresourceFilterDriver(
22 content::RenderFrameHost* render_frame_host);
23 ~ContentSubresourceFilterDriver();
24
25 // Instructs the agent on the renderer to set up the subresource filter for
26 // the currently ongoing provisional document load in the frame.
27 void ActivateForProvisionalLoad(ActivationState activation_state);
28
29 private:
30 // The RenderFrameHost that this driver belongs to.
31 content::RenderFrameHost* render_frame_host_;
32
33 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriver);
34 };
35
36 } // namespace subresource_filter
37
38 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698