Skip to content

Commit 0b3eb0f

Browse files
E-T-ronshapiro
authored andcommitted
Adds WASM as a supported Media type to Google Java utilities.
Adds WASM support to the StaticFileAction in devserver (so that it is served with the correct Content Type). RELNOTES=Adds WASM as a supported Media type to Google Java utilities. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=207663220
1 parent f29f5d3 commit 0b3eb0f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

android/guava/src/com/google/common/net/MediaType.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,13 @@ private static MediaType addKnownType(MediaType mediaType) {
457457
createConstant(APPLICATION_TYPE, "vnd.ms-powerpoint");
458458
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");
459459

460+
/**
461+
* Media type for WASM applications. For more information see <a
462+
* href="https://webassembly.org/">the Web Assembly overview</a>.
463+
*
464+
* @since NEXT
465+
*/
466+
public static final MediaType WASM_APPLICATION = createConstant(APPLICATION_TYPE, "wasm");
460467
/**
461468
* Media type for NaCl applications. For more information see <a
462469
* href="https://developer.chrome.com/native-client/devguide/coding/application-structure">the

guava/src/com/google/common/net/MediaType.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,13 @@ private static MediaType addKnownType(MediaType mediaType) {
457457
createConstant(APPLICATION_TYPE, "vnd.ms-powerpoint");
458458
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");
459459

460+
/**
461+
* Media type for WASM applications. For more information see <a
462+
* href="https://webassembly.org/">the Web Assembly overview</a>.
463+
*
464+
* @since NEXT
465+
*/
466+
public static final MediaType WASM_APPLICATION = createConstant(APPLICATION_TYPE, "wasm");
460467
/**
461468
* Media type for NaCl applications. For more information see <a
462469
* href="https://developer.chrome.com/native-client/devguide/coding/application-structure">the

0 commit comments

Comments
 (0)