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

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

Issue 2699443006: Deprecate ContentSubresourceFilterDriver. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver.h"
6
7 #include "components/subresource_filter/content/common/subresource_filter_messag es.h"
8 #include "content/public/browser/render_frame_host.h"
9
10 namespace subresource_filter {
11
12 ContentSubresourceFilterDriver::ContentSubresourceFilterDriver(
13 content::RenderFrameHost* render_frame_host)
14 : render_frame_host_(render_frame_host) {}
15
16 ContentSubresourceFilterDriver::~ContentSubresourceFilterDriver() {}
17
18 void ContentSubresourceFilterDriver::ActivateForNextCommittedLoad(
19 ActivationLevel activation_level,
20 bool measure_performance) {
21 // Must use legacy IPC to ensure the activation message arrives in-order, i.e.
22 // before the load is committed on the renderer side.
23 render_frame_host_->Send(
24 new SubresourceFilterMsg_ActivateForNextCommittedLoad(
25 render_frame_host_->GetRoutingID(), activation_level,
26 measure_performance));
27 }
28
29 } // namespace subresource_filter
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698