summaryrefslogtreecommitdiff
path: root/chromium/content/browser/frame_host/data_url_navigation_throttle.h
blob: 14a2038e74ea47f2f5ce08253402ce8ead3bd7b3 (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
29
30
31
32
33
// 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 CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_
#define CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_

#include <memory>

#include "base/macros.h"
#include "content/public/browser/navigation_throttle.h"

namespace content {

class DataUrlNavigationThrottle : public NavigationThrottle {
 public:
  explicit DataUrlNavigationThrottle(NavigationHandle* navigation_handle);
  ~DataUrlNavigationThrottle() override;

  // NavigationThrottle method:
  ThrottleCheckResult WillProcessResponse() override;
  const char* GetNameForLogging() override;

  static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation(
      NavigationHandle* navigation_handle);

 private:
  DISALLOW_COPY_AND_ASSIGN(DataUrlNavigationThrottle);
};

}  // namespace content

#endif  // CONTENT_BROWSER_FRAME_HOST_DATA_URL_NAVIGATION_THROTTLE_