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

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h

Issue 556723002: Add delegate to install web_contents helpers for MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove fwd declaring MimeHandlerViewGuest 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: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..563ac856df91e1d810f456368dc9328097eec170
--- /dev/null
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
@@ -0,0 +1,33 @@
+// 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 EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_
+#define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_
+
+#include "base/macros.h"
+
+namespace content {
+class WebContents;
+} // namespace content
+
+namespace extensions {
+
+class MimeHandlerViewGuest;
+
+// A delegate class of MimeHandlerViewGuest that are not a part of chrome.
+class MimeHandlerViewGuestDelegate {
+ public:
+ explicit MimeHandlerViewGuestDelegate(MimeHandlerViewGuest* guest) {}
+ virtual ~MimeHandlerViewGuestDelegate() {}
+
+ // Attaches helpers upon initializing the WebContents.
+ virtual void AttachHelpers() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuestDelegate);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_
« no previous file with comments | « extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698