summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/public/platform/media/resource_fetch_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/public/platform/media/resource_fetch_context.h')
-rw-r--r--chromium/third_party/blink/public/platform/media/resource_fetch_context.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/blink/public/platform/media/resource_fetch_context.h b/chromium/third_party/blink/public/platform/media/resource_fetch_context.h
new file mode 100644
index 00000000000..c065b3918a0
--- /dev/null
+++ b/chromium/third_party/blink/public/platform/media/resource_fetch_context.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_MEDIA_RESOURCE_FETCH_CONTEXT_H_
+#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_MEDIA_RESOURCE_FETCH_CONTEXT_H_
+
+#include <memory>
+
+#include "third_party/blink/public/platform/web_common.h"
+#include "third_party/blink/public/platform/web_string.h"
+#include "third_party/blink/public/web/web_associated_url_loader.h"
+#include "third_party/blink/public/web/web_associated_url_loader_options.h"
+
+namespace blink {
+
+class BLINK_PLATFORM_EXPORT ResourceFetchContext {
+ public:
+ virtual ~ResourceFetchContext() {}
+
+ virtual std::unique_ptr<WebAssociatedURLLoader> CreateUrlLoader(
+ const WebAssociatedURLLoaderOptions& options) = 0;
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_MEDIA_RESOURCE_FETCH_CONTEXT_H_