| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "extensions/browser/extension_function_dispatcher.h" | 9 #include "extensions/browser/extension_function_dispatcher.h" |
| 10 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" | 10 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 39 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 40 | 40 |
| 41 // content::WebContentsObserver implementation. | 41 // content::WebContentsObserver implementation. |
| 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 43 | 43 |
| 44 // content::WebContentsDelegate implementation. | 44 // content::WebContentsDelegate implementation. |
| 45 virtual bool HandleContextMenu( | 45 virtual bool HandleContextMenu( |
| 46 const content::ContextMenuParams& params) OVERRIDE; | 46 const content::ContextMenuParams& params) OVERRIDE; |
| 47 | 47 |
| 48 // GuestViewBase implementation. | 48 // GuestViewBase implementation. |
| 49 virtual const char* GetAPINamespace() OVERRIDE; | 49 virtual const char* GetAPINamespace() const OVERRIDE; |
| 50 virtual base::string16 GetTaskName() const OVERRIDE; |
| 50 virtual void CreateWebContents( | 51 virtual void CreateWebContents( |
| 51 const std::string& embedder_extension_id, | 52 const std::string& embedder_extension_id, |
| 52 int embedder_render_process_id, | 53 int embedder_render_process_id, |
| 53 const base::DictionaryValue& create_params, | 54 const base::DictionaryValue& create_params, |
| 54 const WebContentsCreatedCallback& callback) OVERRIDE; | 55 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 55 virtual void DidAttachToEmbedder() OVERRIDE; | 56 virtual void DidAttachToEmbedder() OVERRIDE; |
| 56 virtual void DidInitialize() OVERRIDE; | 57 virtual void DidInitialize() OVERRIDE; |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 AppViewGuest(content::BrowserContext* browser_context, int guest_instance_id); | 60 AppViewGuest(content::BrowserContext* browser_context, int guest_instance_id); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 78 // This is used to ensure pending tasks will not fire after this object is | 79 // This is used to ensure pending tasks will not fire after this object is |
| 79 // destroyed. | 80 // destroyed. |
| 80 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 81 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 83 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace extensions | 86 } // namespace extensions |
| 86 | 87 |
| 87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 88 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| OLD | NEW |