blob: eab2af03cb2f592a0f76ba81e6ca5ea52210c27a [file] [log] [blame]
[email protected]e8ea4fb22012-08-22 23:03:411// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
jitendra.ks4f2e9112015-08-14 11:40:265#ifndef COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_
6#define COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_
[email protected]e8ea4fb22012-08-22 23:03:417
[email protected]e8ea4fb22012-08-22 23:03:418#include "base/compiler_specific.h"
avibc5337b2015-12-25 23:16:339#include "base/macros.h"
[email protected]e8ea4fb22012-08-22 23:03:4110#include "net/url_request/url_request_job_factory.h"
11
jitendra.ks4f2e9112015-08-14 11:40:2612namespace about_handler {
[email protected]e8ea4fb22012-08-22 23:03:4113
14// Implements a ProtocolHandler for About jobs.
[email protected]d5273f402012-10-15 21:17:3815class AboutProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
[email protected]e8ea4fb22012-08-22 23:03:4116 public:
17 AboutProtocolHandler();
jitendra.ks4f2e9112015-08-14 11:40:2618 ~AboutProtocolHandler() override;
dchengfce29ad2014-10-23 03:47:4719 net::URLRequestJob* MaybeCreateJob(
[email protected]d5273f402012-10-15 21:17:3820 net::URLRequest* request,
mostynb2b52d1db2014-10-07 02:47:1721 net::NetworkDelegate* network_delegate) const override;
dchengfce29ad2014-10-23 03:47:4722 bool IsSafeRedirectTarget(const GURL& location) const override;
[email protected]e8ea4fb22012-08-22 23:03:4123
24 private:
25 DISALLOW_COPY_AND_ASSIGN(AboutProtocolHandler);
26};
27
jitendra.ks4f2e9112015-08-14 11:40:2628} // namespace about_handler
[email protected]e8ea4fb22012-08-22 23:03:4129
jitendra.ks4f2e9112015-08-14 11:40:2630#endif // COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_