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_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 "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" | 8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" |
9 #include "chrome/browser/ui/zoom/zoom_observer.h" | 9 #include "chrome/browser/ui/zoom/zoom_observer.h" |
10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 scoped_ptr<RenderViewContextMenu> pending_menu_; | 81 scoped_ptr<RenderViewContextMenu> pending_menu_; |
82 | 82 |
83 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
84 // Subscription to receive notifications on changes to a11y settings. | 84 // Subscription to receive notifications on changes to a11y settings. |
85 scoped_ptr<chromeos::AccessibilityStatusSubscription> | 85 scoped_ptr<chromeos::AccessibilityStatusSubscription> |
86 accessibility_subscription_; | 86 accessibility_subscription_; |
87 #endif | 87 #endif |
88 | 88 |
89 extensions::WebViewGuest* const web_view_guest_; | 89 extensions::WebViewGuest* const web_view_guest_; |
90 | 90 |
| 91 // This is used to ensure pending tasks will not fire after this object is |
| 92 // destroyed. |
| 93 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; |
| 94 |
91 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); |
92 }; | 96 }; |
93 | 97 |
94 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ | 98 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ |
95 | 99 |
OLD | NEW |