android_protocol_handler.h 829 B

123456789101112131415161718192021222324252627282930
  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
  3. // found in the LICENSE file.
  4. #ifndef ANDROID_WEBVIEW_BROWSER_ANDROID_PROTOCOL_HANDLER_H_
  5. #define ANDROID_WEBVIEW_BROWSER_ANDROID_PROTOCOL_HANDLER_H_
  6. #include <jni.h>
  7. #include <memory>
  8. class GURL;
  9. namespace embedder_support {
  10. class InputStream;
  11. }
  12. namespace android_webview {
  13. std::unique_ptr<embedder_support::InputStream> CreateInputStream(
  14. JNIEnv* env,
  15. const GURL& url);
  16. bool GetInputStreamMimeType(JNIEnv* env,
  17. const GURL& url,
  18. embedder_support::InputStream* stream,
  19. std::string* mime_type);
  20. } // namespace android_webview
  21. #endif // ANDROID_WEBVIEW_BROWSER_ANDROID_PROTOCOL_HANDLER_H_