OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "cronet_consumer_app_delegate.h" | 5 #import "cronet_consumer_app_delegate.h" |
6 | 6 |
7 #import <Cronet/Cronet.h> | 7 #import "components/cronet/ios/Cronet.h" |
kapishnikov
2017/05/17 16:02:49
Ideally, we should not make this change but depend
mef
2017/05/19 18:07:59
Yes, ideally we'll make a static framework, so con
| |
8 | 8 |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #import "cronet_consumer_view_controller.h" | 10 #import "cronet_consumer_view_controller.h" |
11 | 11 |
12 @implementation CronetConsumerAppDelegate { | 12 @implementation CronetConsumerAppDelegate { |
13 NSUInteger _counter; | 13 NSUInteger _counter; |
14 } | 14 } |
15 | 15 |
16 @synthesize window; | 16 @synthesize window; |
17 @synthesize viewController; | 17 @synthesize viewController; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 - (void)applicationDidEnterBackground:(UIApplication*)application { | 77 - (void)applicationDidEnterBackground:(UIApplication*)application { |
78 [Cronet stopNetLog]; | 78 [Cronet stopNetLog]; |
79 } | 79 } |
80 | 80 |
81 - (void)applicationWillEnterForeground:(UIApplication*)application { | 81 - (void)applicationWillEnterForeground:(UIApplication*)application { |
82 _counter++; | 82 _counter++; |
83 [Cronet startNetLogToFile:[self currentNetLogFileName] logBytes:NO]; | 83 [Cronet startNetLogToFile:[self currentNetLogFileName] logBytes:NO]; |
84 } | 84 } |
85 | 85 |
86 @end | 86 @end |
OLD | NEW |