OLD | NEW |
---|---|
(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 ContentSubresourceFilterDriver(content::RenderFrameHost* render_frame_host); | |
battre
2016/05/30 15:29:25
explicit
engedy
2016/05/30 20:54:00
Done.
| |
22 ~ContentSubresourceFilterDriver(); | |
23 | |
24 // Instructs the agent on the renderer to set up the subresource filter for | |
25 // the currently ongoing provisional document load in the frame. | |
26 void ActivateForProvisionalLoad(ActivationState activation_state); | |
27 | |
28 private: | |
29 // The RenderFrameHost that this driver belongs to. | |
30 content::RenderFrameHost* render_frame_host_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriver); | |
33 }; | |
34 | |
35 } // namespace subresource_filter | |
36 | |
37 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_H_ | |
OLD | NEW |