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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 45 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
46 void RequestMediaAccessPermission( | 46 void RequestMediaAccessPermission( |
47 content::WebContents* web_contents, | 47 content::WebContents* web_contents, |
48 const content::MediaStreamRequest& request, | 48 const content::MediaStreamRequest& request, |
49 const content::MediaResponseCallback& callback) override; | 49 const content::MediaResponseCallback& callback) override; |
50 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 50 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
51 const GURL& security_origin, | 51 const GURL& security_origin, |
52 content::MediaStreamType type) override; | 52 content::MediaStreamType type) override; |
53 | 53 |
54 // GuestViewBase implementation. | 54 // GuestViewBase implementation. |
| 55 bool CanRunInDetachedState() const override; |
| 56 void CreateWebContents(const base::DictionaryValue& create_params, |
| 57 const WebContentsCreatedCallback& callback) override; |
| 58 void DidInitialize(const base::DictionaryValue& create_params) override; |
55 const char* GetAPINamespace() const override; | 59 const char* GetAPINamespace() const override; |
56 int GetTaskPrefix() const override; | 60 int GetTaskPrefix() const override; |
57 void CreateWebContents(const base::DictionaryValue& create_params, | |
58 const WebContentsCreatedCallback& callback) override; | |
59 void DidAttachToEmbedder() override; | |
60 void DidInitialize(const base::DictionaryValue& create_params) override; | |
61 | 61 |
62 // Sets the AppDelegate for this guest. | 62 // Sets the AppDelegate for this guest. |
63 void SetAppDelegateForTest(AppDelegate* delegate); | 63 void SetAppDelegateForTest(AppDelegate* delegate); |
64 | 64 |
65 private: | 65 private: |
66 AppViewGuest(content::WebContents* owner_web_contents, int guest_instance_id); | 66 AppViewGuest(content::WebContents* owner_web_contents, int guest_instance_id); |
67 | 67 |
68 ~AppViewGuest() override; | 68 ~AppViewGuest() override; |
69 | 69 |
70 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 70 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
(...skipping 15 matching lines...) Expand all Loading... |
86 // This is used to ensure pending tasks will not fire after this object is | 86 // This is used to ensure pending tasks will not fire after this object is |
87 // destroyed. | 87 // destroyed. |
88 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 88 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 90 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace extensions | 93 } // namespace extensions |
94 | 94 |
95 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 95 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
OLD | NEW |