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_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ |
| 7 |
| 8 #include "chrome/browser/guest_view/guest_view.h" |
| 9 #include "extensions/browser/extension_function_dispatcher.h" |
| 10 |
| 11 class ExtensionOptionsGuest : |
| 12 public GuestView<ExtensionOptionsGuest>, |
| 13 public extensions::ExtensionFunctionDispatcher::Delegate { |
| 14 |
| 15 public: |
| 16 static const char Type[]; |
| 17 |
| 18 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
| 19 int guest_instance_id); |
| 20 |
| 21 // GuestViewBase implementation |
| 22 virtual void DidAttachToEmbedder() OVERRIDE; |
| 23 virtual void DidInitialize() OVERRIDE; |
| 24 virtual void CreateWebContents( |
| 25 const std::string& embedder_extension_id, |
| 26 int embedder_render_process_id, |
| 27 const base::DictionaryValue& create_params, |
| 28 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 29 |
| 30 // ExtensionFunctionDispatcher::Delegate implementation |
| 31 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 32 |
| 33 // content::WebContentsObserver implementation. |
| 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 35 |
| 36 private: |
| 37 virtual ~ExtensionOptionsGuest(); |
| 38 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 39 |
| 40 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
| 41 extension_function_dispatcher_; |
| 42 GURL options_page_; |
| 43 }; |
| 44 |
| 45 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
OLD | NEW |