/*
 * Copyright (C) 2017 Square, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package okhttp3;

import java.io.IOException;

/**
 * Observes, modifies, and potentially short-circuits requests going out and the corresponding
 * responses coming back in. Typically interceptors add, remove, or transform headers on the request
 * or response.
 */
public class EventListener {
	public static final EventListener NULL_EVENT_LISTENER = new EventListener() {
	};

	void requestEnqueued(Call call) {
	}

	void dnsStart(Call call, String domainName) {
	}

	void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList, Throwable throwable) {
	}

	void connectStart(Call call, InetAddress address, int port) {
	}
	
	void secureConnectStart(Call call) {
	}

	void secureConnectEnd(Call call, String cipherSuite, String protocol, Throwable throwable) {
	}

	void connectEnd(Call call,  InetAddress address, int port, String protocol, Throwable throwable) {
	}

	void requestHeadersStart(Call call) {
	}

	void requestHeadersEnd(Call call, Throwable throwable) {
	}

	void requestBodyStart(Call call) {
	}

	void requestBodyEnd(Call call, Throwable throwable) {
	}

	void responseHeadersStart(Call call) {
	}

	void responseHeadersEnd(Call call, Throwable throwable) {
	}

	void responseBodyStart(Call call) {
	}

	void responseBodyEnd(Call call, Throwable throwable) {
	}
}

@@ -628,22 +628,46 @@
 ava.
-io.IOException
+net.InetAddress;%0Aimport java.util.List
 ;%0A%0A/
@@ -914,17 +914,18 @@
 tener %7B%0A
-%09
+  
 public s
@@ -998,14 +998,16 @@
 ) %7B%0A
-%09
+  
 %7D;%0A%0A
-%09
+  
 void
@@ -1032,29 +1032,31 @@
 all call) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void dnsStar
@@ -1085,29 +1085,31 @@
 mainName) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void dnsEnd(
@@ -1172,16 +1172,22 @@
 essList,
+%0A     
  Throwab
@@ -1194,37 +1194,39 @@
 le throwable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void connectStar
@@ -1275,14 +1275,15 @@
 ) %7B%0A
-%09%7D%0A%09%0A%09
+  %7D%0A%0A  
 void
@@ -1311,29 +1311,31 @@
 all call) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void secureC
@@ -1411,29 +1411,31 @@
 hrowable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void connect
@@ -1513,37 +1513,39 @@
 le throwable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void requestHead
@@ -1558,37 +1558,39 @@
 rt(Call call) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void requestHead
@@ -1626,29 +1626,31 @@
 hrowable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void request
@@ -1668,29 +1668,31 @@
 all call) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void request
@@ -1725,37 +1725,39 @@
 le throwable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void responseHea
@@ -1771,37 +1771,39 @@
 rt(Call call) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void responseHea
@@ -1840,29 +1840,31 @@
 hrowable) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void respons
@@ -1891,13 +1891,15 @@
 ) %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 void
@@ -1953,9 +1953,10 @@
 ) %7B%0A
-%09
+  
 %7D%0A%7D%0A

fix style