Don't preload rarely seen large images
[chromium-blink-merge.git] / components / webp_transcode / webp_network_client.h
blob307856bf2e527ec02753202d8ec114738e1b4cbb
1 // Copyright 2013 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.
5 #ifndef COMPONENTS_WEBP_TRANSCODE_WEBP_NETWORK_CLIENT_H_
6 #define COMPONENTS_WEBP_TRANSCODE_WEBP_NETWORK_CLIENT_H_
8 #import <Foundation/Foundation.h>
10 #include "base/memory/ref_counted.h"
11 #import "ios/net/clients/crn_forwarding_network_client.h"
12 #import "ios/net/clients/crn_forwarding_network_client_factory.h"
14 // Network client that decodes WebP images.
15 @interface WebPNetworkClient : CRNForwardingNetworkClient
17 // |runner| is the task runner used to perform the image decoding.
18 // Designated initializer.
19 - (instancetype)initWithTaskRunner:
20 (const scoped_refptr<base::SequencedTaskRunner>&)runner;
22 @end
24 #endif // COMPONENTS_WEBP_TRANSCODE_WEBP_NETWORK_CLIENT_H_