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

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

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 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 "base/macros.h" 9 #include "base/macros.h"
10 #include "components/guest_view/browser/guest_view.h" 10 #include "components/guest_view/browser/guest_view.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // GuestViewBase implementation. 53 // GuestViewBase implementation.
54 bool CanRunInDetachedState() const final; 54 bool CanRunInDetachedState() const final;
55 void CreateWebContents(const base::DictionaryValue& create_params, 55 void CreateWebContents(const base::DictionaryValue& create_params,
56 const WebContentsCreatedCallback& callback) final; 56 const WebContentsCreatedCallback& callback) final;
57 void DidInitialize(const base::DictionaryValue& create_params) final; 57 void DidInitialize(const base::DictionaryValue& create_params) final;
58 const char* GetAPINamespace() const final; 58 const char* GetAPINamespace() const final;
59 int GetTaskPrefix() const final; 59 int GetTaskPrefix() const final;
60 60
61 // content::WebContentsDelegate implementation. 61 // content::WebContentsDelegate implementation.
62 bool HandleContextMenu(const content::ContextMenuParams& params) final; 62 bool HandleContextMenu(RenderFrameHost* render_frame_host,
63 const content::ContextMenuParams& params) final;
63 void RequestMediaAccessPermission( 64 void RequestMediaAccessPermission(
64 content::WebContents* web_contents, 65 content::WebContents* web_contents,
65 const content::MediaStreamRequest& request, 66 const content::MediaStreamRequest& request,
66 const content::MediaResponseCallback& callback) final; 67 const content::MediaResponseCallback& callback) final;
67 bool CheckMediaAccessPermission(content::WebContents* web_contents, 68 bool CheckMediaAccessPermission(content::WebContents* web_contents,
68 const GURL& security_origin, 69 const GURL& security_origin,
69 content::MediaStreamType type) final; 70 content::MediaStreamType type) final;
70 71
71 void CompleteCreateWebContents(const GURL& url, 72 void CompleteCreateWebContents(const GURL& url,
72 const Extension* guest_extension, 73 const Extension* guest_extension,
(...skipping 11 matching lines...) Expand all
84 // This is used to ensure pending tasks will not fire after this object is 85 // This is used to ensure pending tasks will not fire after this object is
85 // destroyed. 86 // destroyed.
86 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; 87 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); 89 DISALLOW_COPY_AND_ASSIGN(AppViewGuest);
89 }; 90 };
90 91
91 } // namespace extensions 92 } // namespace extensions
92 93
93 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698