summaryrefslogtreecommitdiff
path: root/chromium/media/blink/resource_fetch_context.h
blob: e517811384dfa6963523d35083b5c3f21624703d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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 MEDIA_BLINK_RESOURCE_FETCH_CONTEXT_H_
#define MEDIA_BLINK_RESOURCE_FETCH_CONTEXT_H_

#include <memory>

#include "media/blink/media_blink_export.h"
#include "services/network/public/mojom/referrer_policy.mojom.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 media {

class MEDIA_BLINK_EXPORT ResourceFetchContext {
 public:
  virtual ~ResourceFetchContext() {}

  virtual std::unique_ptr<blink::WebAssociatedURLLoader> CreateUrlLoader(
      const blink::WebAssociatedURLLoaderOptions& options) = 0;
};

}  // namespace media

#endif  // MEDIA_BLINK_RESOURCE_FETCH_CONTEXT_H_