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

Unified Diff: net/url_request/url_request_about_job.cc

Issue 1284173003: Create a about handler component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_about_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_about_job.cc
diff --git a/net/url_request/url_request_about_job.cc b/net/url_request/url_request_about_job.cc
deleted file mode 100644
index 56193160f33e800740200416a1d66404f7db4075..0000000000000000000000000000000000000000
--- a/net/url_request/url_request_about_job.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 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.
-
-// Simple implementation of about: protocol handler that treats everything as
-// about:blank. No other about: features should be available to web content,
-// so they're not implemented here.
-
-#include "net/url_request/url_request_about_job.h"
-
-#include "base/bind.h"
-#include "base/compiler_specific.h"
-#include "base/location.h"
-#include "base/single_thread_task_runner.h"
-#include "base/thread_task_runner_handle.h"
-
-namespace net {
-
-URLRequestAboutJob::URLRequestAboutJob(URLRequest* request,
- NetworkDelegate* network_delegate)
- : URLRequestJob(request, network_delegate),
- weak_factory_(this) {
-}
-
-void URLRequestAboutJob::Start() {
- // Start reading asynchronously so that all error reporting and data
- // callbacks happen as they would for network requests.
- base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE,
- base::Bind(&URLRequestAboutJob::StartAsync, weak_factory_.GetWeakPtr()));
-}
-
-bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const {
- *mime_type = "text/html";
- return true;
-}
-
-URLRequestAboutJob::~URLRequestAboutJob() {
-}
-
-void URLRequestAboutJob::StartAsync() {
- NotifyHeadersComplete();
-}
-
-} // namespace net
« no previous file with comments | « net/url_request/url_request_about_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698