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

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

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.h
diff --git a/chrome/browser/chromeos/fileapi/external_file_protocol_handler.h b/chrome/browser/chromeos/fileapi/external_file_protocol_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..88500e06fbfb2d380478157128ab24f2ab9235be
--- /dev/null
+++ b/chrome/browser/chromeos/fileapi/external_file_protocol_handler.h
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_EXTERNAL_FILE_PROTOCOL_HANDLER_H_
+#define CHROME_BROWSER_CHROMEOS_FILEAPI_EXTERNAL_FILE_PROTOCOL_HANDLER_H_
+
+#include "base/basictypes.h"
+#include "net/url_request/url_request_job_factory.h"
+
+namespace base {
+class SequencedTaskRunner;
+} // namespace base
+
+namespace chromeos {
+
+class ExternalFileProtocolHandler
+ : public net::URLRequestJobFactory::ProtocolHandler {
+ public:
+ explicit ExternalFileProtocolHandler(void* profile_id);
+ virtual ~ExternalFileProtocolHandler();
+
+ // Creates URLRequestJobs for drive:// URLs.
+ virtual net::URLRequestJob* MaybeCreateJob(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const OVERRIDE;
+
+ private:
+ // The profile for processing Drive accesses. Should not be NULL.
+ void* profile_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExternalFileProtocolHandler);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_FILEAPI_EXTERNAL_FILE_PROTOCOL_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698