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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase, really Created 4 years, 10 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" 10 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h"
(...skipping 13 matching lines...) Expand all
24 namespace extensions { 24 namespace extensions {
25 25
26 class ChromeWebViewGuestDelegate : public WebViewGuestDelegate { 26 class ChromeWebViewGuestDelegate : public WebViewGuestDelegate {
27 public : 27 public :
28 explicit ChromeWebViewGuestDelegate(WebViewGuest* web_view_guest); 28 explicit ChromeWebViewGuestDelegate(WebViewGuest* web_view_guest);
29 ~ChromeWebViewGuestDelegate() override; 29 ~ChromeWebViewGuestDelegate() override;
30 30
31 // WebViewGuestDelegate implementation. 31 // WebViewGuestDelegate implementation.
32 bool HandleContextMenu(const content::ContextMenuParams& params) override; 32 bool HandleContextMenu(const content::ContextMenuParams& params) override;
33 void OnDidInitialize() override; 33 void OnDidInitialize() override;
34 void OnShowContextMenu(int request_id, const MenuItemVector* items) override; 34 void OnShowContextMenu(int request_id) override;
35 bool ShouldHandleFindRequestsForEmbedder() const override; 35 bool ShouldHandleFindRequestsForEmbedder() const override;
36 36
37 WebViewGuest* web_view_guest() const { return web_view_guest_; } 37 WebViewGuest* web_view_guest() const { return web_view_guest_; }
38 38
39 private: 39 private:
40 content::WebContents* guest_web_contents() const { 40 content::WebContents* guest_web_contents() const {
41 return web_view_guest()->web_contents(); 41 return web_view_guest()->web_contents();
42 } 42 }
43 43
44 void SetContextMenuPosition(const gfx::Point& position) override; 44 void SetContextMenuPosition(const gfx::Point& position) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // This is used to ensure pending tasks will not fire after this object is 79 // This is used to ensure pending tasks will not fire after this object is
80 // destroyed. 80 // destroyed.
81 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; 81 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); 83 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
84 }; 84 };
85 85
86 } // namespace extensions 86 } // namespace extensions
87 87
88 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 88 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698