[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 1 | // 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.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 5 | #ifndef COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_ |
6 | #define COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_ | ||||
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 7 | |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 8 | #include "base/compiler_specific.h" |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 9 | #include "base/macros.h" |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 10 | #include "net/url_request/url_request_job_factory.h" |
11 | |||||
jitendra.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 12 | namespace about_handler { |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 13 | |
14 | // Implements a ProtocolHandler for About jobs. | ||||
[email protected] | d5273f40 | 2012-10-15 21:17:38 | [diff] [blame] | 15 | class AboutProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 16 | public: |
17 | AboutProtocolHandler(); | ||||
jitendra.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 18 | ~AboutProtocolHandler() override; |
dcheng | fce29ad | 2014-10-23 03:47:47 | [diff] [blame] | 19 | net::URLRequestJob* MaybeCreateJob( |
[email protected] | d5273f40 | 2012-10-15 21:17:38 | [diff] [blame] | 20 | net::URLRequest* request, |
mostynb | 2b52d1db | 2014-10-07 02:47:17 | [diff] [blame] | 21 | net::NetworkDelegate* network_delegate) const override; |
dcheng | fce29ad | 2014-10-23 03:47:47 | [diff] [blame] | 22 | bool IsSafeRedirectTarget(const GURL& location) const override; |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 23 | |
24 | private: | ||||
25 | DISALLOW_COPY_AND_ASSIGN(AboutProtocolHandler); | ||||
26 | }; | ||||
27 | |||||
jitendra.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 28 | } // namespace about_handler |
[email protected] | e8ea4fb2 | 2012-08-22 23:03:41 | [diff] [blame] | 29 | |
jitendra.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 30 | #endif // COMPONENTS_ABOUT_HANDLER_ABOUT_PROTOCOL_HANDLER_H_ |