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

Unified Diff: content/public/browser/android/content_protocol_handler.h

Issue 739033003: Support content scheme uri for Chrome on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing siever's comments Created 6 years, 1 month 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: content/public/browser/android/content_protocol_handler.h
diff --git a/content/public/browser/android/content_protocol_handler.h b/content/public/browser/android/content_protocol_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..404ecb9f42b7b118664d0c751c3c2e8dffa97e7a
--- /dev/null
+++ b/content/public/browser/android/content_protocol_handler.h
@@ -0,0 +1,32 @@
+// Copyright (c) 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 CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
+#include "net/url_request/url_request_job_factory.h"
+
+namespace base {
+class TaskRunner;
+}
+
+namespace content {
+
+// ProtocolHandler for content scheme jobs.
+class CONTENT_EXPORT ContentProtocolHandler :
+ public net::URLRequestJobFactory::ProtocolHandler {
+ public:
+ // Creates and returns a ContentProtocolHandler instance.
+ static ContentProtocolHandler* Create(
+ const scoped_refptr<base::TaskRunner>& content_task_runner);
+
+ protected:
+ virtual ~ContentProtocolHandler() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698