| Index: components/subresource_filter/content/browser/content_subresource_filter_driver.h
|
| diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver.h b/components/subresource_filter/content/browser/content_subresource_filter_driver.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..567ef26787273d2a9da28913feddd5b569f559f7
|
| --- /dev/null
|
| +++ b/components/subresource_filter/content/browser/content_subresource_filter_driver.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER_DRIVER_H_
|
| +#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER_DRIVER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/subresource_filter/core/common/activation_state.h"
|
| +
|
| +namespace content {
|
| +class RenderFrameHost;
|
| +} // namespace content
|
| +
|
| +namespace subresource_filter {
|
| +
|
| +// The content-layer-specific driver for the subresource filter component. There
|
| +// is one instance per RenderFrameHost.
|
| +class ContentSubresourceFilterDriver {
|
| + public:
|
| + explicit ContentSubresourceFilterDriver(
|
| + content::RenderFrameHost* render_frame_host);
|
| + ~ContentSubresourceFilterDriver();
|
| +
|
| + // Instructs the agent on the renderer to set up the subresource filter for
|
| + // the currently ongoing provisional document load in the frame.
|
| + void ActivateForProvisionalLoad(ActivationState activation_state);
|
| +
|
| + private:
|
| + // The RenderFrameHost that this driver belongs to.
|
| + content::RenderFrameHost* render_frame_host_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriver);
|
| +};
|
| +
|
| +} // namespace subresource_filter
|
| +
|
| +#endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER_DRIVER_H_
|
|
|