| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() const OVERRIDE; | 49 virtual const char* GetAPINamespace() const OVERRIDE; |
| 50 virtual int GetTaskPrefix() const OVERRIDE; | 50 virtual int GetTaskPrefix() const OVERRIDE; |
| 51 virtual void CreateWebContents( | 51 virtual void CreateWebContents( |
| 52 const std::string& embedder_extension_id, | 52 const std::string& embedder_extension_id, |
| 53 int embedder_render_process_id, | 53 int embedder_render_process_id, |
| 54 const GURL& embedder_site_url, |
| 54 const base::DictionaryValue& create_params, | 55 const base::DictionaryValue& create_params, |
| 55 const WebContentsCreatedCallback& callback) OVERRIDE; | 56 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 56 virtual void DidAttachToEmbedder() OVERRIDE; | 57 virtual void DidAttachToEmbedder() OVERRIDE; |
| 57 virtual void DidInitialize() OVERRIDE; | 58 virtual void DidInitialize() OVERRIDE; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 AppViewGuest(content::BrowserContext* browser_context, int guest_instance_id); | 61 AppViewGuest(content::BrowserContext* browser_context, int guest_instance_id); |
| 61 | 62 |
| 62 virtual ~AppViewGuest(); | 63 virtual ~AppViewGuest(); |
| 63 | 64 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 79 // This is used to ensure pending tasks will not fire after this object is | 80 // This is used to ensure pending tasks will not fire after this object is |
| 80 // destroyed. | 81 // destroyed. |
| 81 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 82 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 84 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace extensions | 87 } // namespace extensions |
| 87 | 88 |
| 88 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 89 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| OLD | NEW |