Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: net/url_request/url_request_about_job.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_request_about_job.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 // Simple implementation of about: protocol handler that treats everything as
6 // about:blank. No other about: features should be available to web content,
7 // so they're not implemented here.
8
9 #include "net/url_request/url_request_about_job.h"
10
11 #include "base/bind.h"
12 #include "base/compiler_specific.h"
13 #include "base/message_loop/message_loop.h"
14
15 namespace net {
16
17 URLRequestAboutJob::URLRequestAboutJob(URLRequest* request,
18 NetworkDelegate* network_delegate)
19 : URLRequestJob(request, network_delegate),
20 weak_factory_(this) {
21 }
22
23 void URLRequestAboutJob::Start() {
24 // Start reading asynchronously so that all error reporting and data
25 // callbacks happen as they would for network requests.
26 base::MessageLoop::current()->PostTask(
27 FROM_HERE,
28 base::Bind(&URLRequestAboutJob::StartAsync, weak_factory_.GetWeakPtr()));
29 }
30
31 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const {
32 *mime_type = "text/html";
33 return true;
34 }
35
36 URLRequestAboutJob::~URLRequestAboutJob() {
37 }
38
39 void URLRequestAboutJob::StartAsync() {
40 NotifyHeadersComplete();
41 }
42
43 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_about_job.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698