| Index: content/browser/frame_host/data_url_navigation_throttle.h
|
| diff --git a/content/browser/frame_host/data_url_navigation_throttle.h b/content/browser/frame_host/data_url_navigation_throttle.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2234ee619c29193319c07d2a241599d05e95c723
|
| --- /dev/null
|
| +++ b/content/browser/frame_host/data_url_navigation_throttle.h
|
| @@ -0,0 +1,32 @@
|
| +// 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;
|
| +
|
| + 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_
|
|
|