OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ |
| 7 |
| 8 #include "extensions/browser/guest_view/guest_view.h" |
| 9 |
| 10 class MimeHandlerViewGuest : |
| 11 public extensions::GuestView<MimeHandlerViewGuest> { |
| 12 public: |
| 13 static GuestViewBase* Create(content::BrowserContext* browser_context, |
| 14 int guest_instance_id); |
| 15 |
| 16 static const char Type[]; |
| 17 |
| 18 // GuestViewBase implementation. |
| 19 virtual const char* GetAPINamespace() const OVERRIDE; |
| 20 virtual int GetTaskPrefix() const OVERRIDE; |
| 21 virtual void CreateWebContents( |
| 22 const std::string& embedder_extension_id, |
| 23 int embedder_render_process_id, |
| 24 const base::DictionaryValue& create_params, |
| 25 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 26 virtual void DidAttachToEmbedder() OVERRIDE; |
| 27 virtual void DidInitialize() OVERRIDE; |
| 28 |
| 29 private: |
| 30 MimeHandlerViewGuest(content::BrowserContext* browser_context, |
| 31 int guest_instance_id); |
| 32 virtual ~MimeHandlerViewGuest(); |
| 33 |
| 34 void AttachWebContentsHelpers(content::WebContents* contents); |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H
_ |
OLD | NEW |