Skip to content

Commit

Permalink
Adds WASM as a supported Media type to Google Java utilities.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
E-T- authored and ronshapiro committed Aug 9, 2018
1 parent f29f5d3 commit 0b3eb0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Expand Up @@ -457,6 +457,13 @@ private static MediaType addKnownType(MediaType mediaType) {
createConstant(APPLICATION_TYPE, "vnd.ms-powerpoint");
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");

/**
* Media type for WASM applications. For more information see <a
* href="https://webassembly.org/">the Web Assembly overview</a>.
*
* @since NEXT
*/
public static final MediaType WASM_APPLICATION = createConstant(APPLICATION_TYPE, "wasm");
/**
* Media type for NaCl applications. For more information see <a
* href="https://developer.chrome.com/native-client/devguide/coding/application-structure">the
Expand Down
7 changes: 7 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Expand Up @@ -457,6 +457,13 @@ private static MediaType addKnownType(MediaType mediaType) {
createConstant(APPLICATION_TYPE, "vnd.ms-powerpoint");
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");

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

0 comments on commit 0b3eb0f

Please sign in to comment.