OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Simple implementation of about: protocol handler that treats everything as | 5 // Simple implementation of about: protocol handler that treats everything as |
6 // about:blank. No other about: features should be available to web content, | 6 // about:blank. No other about: features should be available to web content, |
7 // so they're not implemented here. | 7 // so they're not implemented here. |
8 | 8 |
9 #include "components/about_handler/url_request_about_job.h" | 9 #include "components/about_handler/url_request_about_job.h" |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 | 16 |
17 namespace about_handler { | 17 namespace about_handler { |
18 | 18 |
19 URLRequestAboutJob::URLRequestAboutJob(net::URLRequest* request, | 19 URLRequestAboutJob::URLRequestAboutJob(net::URLRequest* request, |
20 net::NetworkDelegate* network_delegate) | 20 net::NetworkDelegate* network_delegate) |
21 : URLRequestJob(request, network_delegate), | 21 : URLRequestJob(request, network_delegate), |
22 weak_factory_(this) { | 22 weak_factory_(this) { |
23 } | 23 } |
24 | 24 |
25 void URLRequestAboutJob::Start() { | 25 void URLRequestAboutJob::Start() { |
(...skipping 15 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 URLRequestAboutJob::~URLRequestAboutJob() { | 43 URLRequestAboutJob::~URLRequestAboutJob() { |
44 } | 44 } |
45 | 45 |
46 void URLRequestAboutJob::StartAsync() { | 46 void URLRequestAboutJob::StartAsync() { |
47 NotifyHeadersComplete(); | 47 NotifyHeadersComplete(); |
48 } | 48 } |
49 | 49 |
50 } // namespace about_handler | 50 } // namespace about_handler |
OLD | NEW |