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

Unified Diff: chrome/browser/chromeos/fileapi/external_file_protocol_handler.cc

Issue 580023003: Rename the drive: scheme with the externalfile: scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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
Index: chrome/browser/chromeos/fileapi/external_file_protocol_handler.cc
diff --git a/chrome/browser/chromeos/fileapi/external_file_protocol_handler.cc b/chrome/browser/chromeos/fileapi/external_file_protocol_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..21eefc792c12a9ded26b110b1ed39abe4bf18011
--- /dev/null
+++ b/chrome/browser/chromeos/fileapi/external_file_protocol_handler.cc
@@ -0,0 +1,28 @@
+// Copyright 2014 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.
+
+#include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h"
+
+#include "base/logging.h"
+#include "chrome/browser/chromeos/fileapi/external_file_url_request_job.h"
+#include "net/url_request/url_request.h"
+#include "url/gurl.h"
+
+namespace chromeos {
+
+ExternalFileProtocolHandler::ExternalFileProtocolHandler(void* profile_id)
+ : profile_id_(profile_id) {
+}
+
+ExternalFileProtocolHandler::~ExternalFileProtocolHandler() {
+}
+
+net::URLRequestJob* ExternalFileProtocolHandler::MaybeCreateJob(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const {
+ DVLOG(1) << "Handling url: " << request->url().spec();
+ return new ExternalFileURLRequestJob(profile_id_, request, network_delegate);
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698