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

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

Issue 1006973002: Publicize registration of MediaUrlInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to public/android 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/android/media_url_interceptor.h
diff --git a/content/public/browser/android/media_url_interceptor.h b/content/public/browser/android/media_url_interceptor.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e2746b997fb354367982b9fad0b66a57cb7ba55
--- /dev/null
+++ b/content/public/browser/android/media_url_interceptor.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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_MEDIA_URL_INTERCEPTOR_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_URL_INTERCEPTOR_H_
+
+#include "content/common/content_export.h"
+
+namespace media {
+class MediaUrlInterceptor;
+}
+
+namespace content {
+
+class CONTENT_EXPORT MediaUrlInterceptor {
+ public:
+ // Registers an interceptor to allow embedders handling custom urls.
+ static void Register(media::MediaUrlInterceptor* media_url_interceptor);
+
+ private:
+ MediaUrlInterceptor() = delete;
+ ~MediaUrlInterceptor() = delete;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_URL_INTERCEPTOR_H_

Powered by Google App Engine
This is Rietveld 408576698