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 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_ |
OLD | NEW |