OSDN Git Service

Use a single EXTRA_HEADERS intent.
authorGrace Kloba <klobag@google.com>
Wed, 27 Jan 2010 22:11:13 +0000 (14:11 -0800)
committerGrace Kloba <klobag@google.com>
Thu, 28 Jan 2010 17:19:10 +0000 (09:19 -0800)
api/current.xml
core/java/android/provider/Browser.java

index 8302385..f73d9da 100644 (file)
  visibility="public"
 >
 </field>
-<field name="EXTRA_HEADERS_KEY"
+<field name="EXTRA_HEADERS"
  type="java.lang.String"
  transient="false"
  volatile="false"
- value="&quot;com.android.browser.headers_key&quot;"
- static="true"
- final="true"
- deprecated="not deprecated"
- visibility="public"
->
-</field>
-<field name="EXTRA_HEADERS_VALUE"
- type="java.lang.String"
- transient="false"
- volatile="false"
- value="&quot;com.android.browser.headers_value&quot;"
+ value="&quot;com.android.browser.headers&quot;"
  static="true"
  final="true"
  deprecated="not deprecated"
index ef43afe..0b1b16b 100644 (file)
@@ -79,25 +79,13 @@ public class Browser {
     public static final String EXTRA_POST_DATA = "com.android.browser.post_data";
 
     /**
-     * The name of the extra data in the VIEW intent. The data is in the format
-     * of String array. This should be paired with EXTRA_HEADERS_VALUE.
-     * <p>
-     * The keys will be combined with the values and sent in the HTTP request
+     * The name of the extra data in the VIEW intent. The data are key/value
+     * pairs in the format of Bundle. They will be sent in the HTTP request
      * headers for the provided url. The keys can't be the standard HTTP headers
      * as they are set by the WebView. The url's schema must be http(s).
      * <p>
      */
-    public static final String EXTRA_HEADERS_KEY = "com.android.browser.headers_key";
-
-    /**
-     * The name of the extra data in the VIEW intent. The data is in the format
-     * of String array. This should be paired with EXTRA_HEADERS_KEY.
-     * <p>
-     * The values will be combined with the keys and sent in the HTTP request
-     * headers for the provided url. The url's schema must be http(s).
-     * <p>
-     */
-    public static final String EXTRA_HEADERS_VALUE = "com.android.browser.headers_value";
+    public static final String EXTRA_HEADERS = "com.android.browser.headers";
 
     /* if you change column order you must also change indices
        below */