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 CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 6 #define CHROME_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 "chrome/browser/guest_view/guest_view.h" | 9 #include "chrome/browser/guest_view/guest_view.h" |
10 #include "extensions/browser/extension_function_dispatcher.h" | 10 #include "extensions/browser/extension_function_dispatcher.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
41 | 41 |
42 // content::WebContentsObserver implementation. | 42 // content::WebContentsObserver implementation. |
43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
44 | 44 |
45 // content::WebContentsDelegate implementation. | 45 // content::WebContentsDelegate implementation. |
46 virtual bool HandleContextMenu( | 46 virtual bool HandleContextMenu( |
47 const content::ContextMenuParams& params) OVERRIDE; | 47 const content::ContextMenuParams& params) OVERRIDE; |
48 | 48 |
49 // GuestViewBase implementation. | 49 // GuestViewBase implementation. |
| 50 virtual bool CanEmbedderUseGuestView( |
| 51 const std::string& embedder_extension_id) OVERRIDE; |
50 virtual void CreateWebContents( | 52 virtual void CreateWebContents( |
51 const std::string& embedder_extension_id, | 53 const std::string& embedder_extension_id, |
52 int embedder_render_process_id, | 54 int embedder_render_process_id, |
53 const base::DictionaryValue& create_params, | 55 const base::DictionaryValue& create_params, |
54 const WebContentsCreatedCallback& callback) OVERRIDE; | 56 const WebContentsCreatedCallback& callback) OVERRIDE; |
55 virtual void DidAttachToEmbedder() OVERRIDE; | 57 virtual void DidAttachToEmbedder() OVERRIDE; |
56 virtual void DidInitialize() OVERRIDE; | 58 virtual void DidInitialize() OVERRIDE; |
57 | 59 |
58 private: | 60 private: |
59 virtual ~AppViewGuest(); | 61 virtual ~AppViewGuest(); |
(...skipping 13 matching lines...) Expand all Loading... |
73 extension_function_dispatcher_; | 75 extension_function_dispatcher_; |
74 | 76 |
75 // This is used to ensure pending tasks will not fire after this object is | 77 // This is used to ensure pending tasks will not fire after this object is |
76 // destroyed. | 78 // destroyed. |
77 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 79 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
78 | 80 |
79 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 81 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
80 }; | 82 }; |
81 | 83 |
82 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 84 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
OLD | NEW |