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

Side by Side Diff: components/webp_transcode/webp_network_client_factory.mm

Issue 1860003003: Remove the WebPNetworkClient* from iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix No. 2 Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #import "components/webp_transcode/webp_network_client_factory.h"
6
7 #include "base/logging.h"
8 #include "base/sequenced_task_runner.h"
9 #include "base/single_thread_task_runner.h"
10 #import "components/webp_transcode/webp_network_client.h"
11
12 @interface WebPNetworkClientFactory () {
13 scoped_refptr<base::SequencedTaskRunner> _taskRunner;
14 }
15 @end
16
17 @implementation WebPNetworkClientFactory
18
19 - (instancetype)init {
20 NOTREACHED() << "Use |-initWithTaskRunner:| instead";
21 return nil;
22 }
23
24 - (Class)clientClass {
25 return [WebPNetworkClient class];
26 }
27
28 - (instancetype)initWithTaskRunner:
29 (const scoped_refptr<base::SequencedTaskRunner>&)runner {
30 if ((self = [super init])) {
31 DCHECK(runner);
32 _taskRunner = runner;
33 }
34 return self;
35 }
36
37 - (CRNForwardingNetworkClient*)clientHandlingAnyRequest {
38 return
39 [[[WebPNetworkClient alloc] initWithTaskRunner:_taskRunner] autorelease];
40 }
41
42 @end
OLDNEW
« no previous file with comments | « components/webp_transcode/webp_network_client_factory.h ('k') | components/webp_transcode/webp_network_client_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698