Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: extensions/browser/guest_view/app_view/app_view_guest.h

Issue 845363004: <webview>, <appview> and <extensionoptions> can run in a detached state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SurfaceView fix Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool HandleContextMenu(const content::ContextMenuParams& params) override; 46 bool HandleContextMenu(const content::ContextMenuParams& params) override;
47 void RequestMediaAccessPermission( 47 void RequestMediaAccessPermission(
48 content::WebContents* web_contents, 48 content::WebContents* web_contents,
49 const content::MediaStreamRequest& request, 49 const content::MediaStreamRequest& request,
50 const content::MediaResponseCallback& callback) override; 50 const content::MediaResponseCallback& callback) override;
51 bool CheckMediaAccessPermission(content::WebContents* web_contents, 51 bool CheckMediaAccessPermission(content::WebContents* web_contents,
52 const GURL& security_origin, 52 const GURL& security_origin,
53 content::MediaStreamType type) override; 53 content::MediaStreamType type) override;
54 54
55 // GuestViewBase implementation. 55 // GuestViewBase implementation.
56 bool CanRunInDetachedState() const override;
57 void CreateWebContents(const base::DictionaryValue& create_params,
58 const WebContentsCreatedCallback& callback) override;
59 void DidInitialize(const base::DictionaryValue& create_params) override;
56 const char* GetAPINamespace() const override; 60 const char* GetAPINamespace() const override;
57 int GetTaskPrefix() const override; 61 int GetTaskPrefix() const override;
58 void CreateWebContents(const base::DictionaryValue& create_params,
59 const WebContentsCreatedCallback& callback) override;
60 void DidAttachToEmbedder() override;
61 void DidInitialize(const base::DictionaryValue& create_params) override;
62 62
63 // Sets the AppDelegate for this guest. 63 // Sets the AppDelegate for this guest.
64 void SetAppDelegateForTest(AppDelegate* delegate); 64 void SetAppDelegateForTest(AppDelegate* delegate);
65 65
66 private: 66 private:
67 AppViewGuest(content::BrowserContext* browser_context, 67 AppViewGuest(content::BrowserContext* browser_context,
68 content::WebContents* owner_web_contents, 68 content::WebContents* owner_web_contents,
69 int guest_instance_id); 69 int guest_instance_id);
70 70
71 ~AppViewGuest() override; 71 ~AppViewGuest() override;
(...skipping 17 matching lines...) Expand all
89 // This is used to ensure pending tasks will not fire after this object is 89 // This is used to ensure pending tasks will not fire after this object is
90 // destroyed. 90 // destroyed.
91 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; 91 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); 93 DISALLOW_COPY_AND_ASSIGN(AppViewGuest);
94 }; 94 };
95 95
96 } // namespace extensions 96 } // namespace extensions
97 97
98 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 98 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698