Chromium Code Reviews| 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..e007b35ae33506c391bbd518286af0a9825754e5 |
| --- /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: |
| + DataUrlNavigationThrottle(NavigationHandle* navigation_handle); |
|
kinuko
2017/04/19 07:07:44
nit: explicit
meacer
2017/04/21 01:31:21
Done.
|
| + ~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_ |