Index: chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h |
diff --git a/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h b/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6ea3eecb0d005ec4a432bb6263d3e9c00e0e1ad |
--- /dev/null |
+++ b/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h |
@@ -0,0 +1,39 @@ |
+// 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_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ |
+#define CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ |
+ |
+#include "extensions/browser/guest_view/guest_view.h" |
+ |
+class MimeHandlerViewGuest : |
+ public extensions::GuestView<MimeHandlerViewGuest> { |
+ public: |
+ static GuestViewBase* Create(content::BrowserContext* browser_context, |
+ int guest_instance_id); |
+ |
+ static const char Type[]; |
+ |
+ // GuestViewBase implementation. |
+ virtual const char* GetAPINamespace() const OVERRIDE; |
+ virtual int GetTaskPrefix() const OVERRIDE; |
+ virtual void CreateWebContents( |
+ const std::string& embedder_extension_id, |
+ int embedder_render_process_id, |
+ const base::DictionaryValue& create_params, |
+ const WebContentsCreatedCallback& callback) OVERRIDE; |
+ virtual void DidAttachToEmbedder() OVERRIDE; |
+ virtual void DidInitialize() OVERRIDE; |
+ |
+ private: |
+ MimeHandlerViewGuest(content::BrowserContext* browser_context, |
+ int guest_instance_id); |
+ virtual ~MimeHandlerViewGuest(); |
+ |
+ void AttachWebContentsHelpers(content::WebContents* contents); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
+}; |
+ |
+#endif // CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ |