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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_ui_service.h

Issue 2848293002: Adding the Previews infobar to pages that show a client LoFi image (Closed)
Patch Set: sclittle comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/content/browser/content_lofi_ui_service.h
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_ui_service.h b/components/data_reduction_proxy/content/browser/content_lofi_ui_service.h
index 9c0c3f1eadb5c745f54088f3d55a0c3914809905..db6f0e76711cfa39719412c4e7958316a2d2542a 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_ui_service.h
+++ b/components/data_reduction_proxy/content/browser/content_lofi_ui_service.h
@@ -25,7 +25,7 @@ class URLRequest;
namespace data_reduction_proxy {
using OnLoFiResponseReceivedCallback =
- base::Callback<void(content::WebContents* web_contents)>;
+ base::Callback<void(content::WebContents*, bool)>;
// Passes notifications to the UI thread that a Lo-Fi response has been
// received. These notifications may be used to show Lo-Fi UI. This object lives
@@ -38,14 +38,16 @@ class ContentLoFiUIService : public LoFiUIService {
~ContentLoFiUIService() override;
// LoFiUIService implementation:
- void OnLoFiReponseReceived(const net::URLRequest& request) override;
+ void OnLoFiReponseReceived(const net::URLRequest& request,
+ bool is_server_lofi) override;
private:
// Using the |render_process_id| and |render_frame_id|, gets the associated
// WebContents if it exists and runs the
// |notify_lofi_response_received_callback_|.
void OnLoFiResponseReceivedOnUIThread(int render_process_id,
- int render_frame_id);
+ int render_frame_id,
+ bool is_server_lofi);
// A task runner to post calls to OnLoFiReponseReceivedOnUI on the UI
// thread.

Powered by Google App Engine
This is Rietveld 408576698