Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ | 6 #define CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| 11 | 11 |
| 12 class AndroidProtocolAdapter { | 12 class AndroidProtocolAdapter { |
|
joth
2012/08/23 18:23:28
this class really needs some docs. I have already
mnaganov (inactive)
2012/08/24 12:53:05
Added a description.
| |
| 13 public: | 13 public: |
| 14 static net::URLRequest::ProtocolFactory Factory; | 14 static net::URLRequest::ProtocolFactory Factory; |
|
joth
2012/08/23 18:23:28
wow. I've never seen this syntax for declaring a f
| |
| 15 | 15 |
| 16 // Register the protocol factories for all supported Android protocol | 16 // Register the protocol factories for all supported Android protocol |
| 17 // schemes. | 17 // schemes. Assumes that the profile already exists. |
| 18 static bool RegisterProtocols(JNIEnv* env); | 18 static bool RegisterProtocols(JNIEnv* env); |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 DISALLOW_IMPLICIT_CONSTRUCTORS(AndroidProtocolAdapter); | 21 DISALLOW_IMPLICIT_CONSTRUCTORS(AndroidProtocolAdapter); |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 #endif // CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ | 24 #endif // CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
| OLD | NEW |