OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ |
6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ | 6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "chrome/browser/extensions/tab_helper.h" | 9 #include "chrome/browser/extensions/tab_helper.h" |
10 #include "chrome/browser/guestview/guestview.h" | 10 #include "chrome/browser/guestview/guestview.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual WebViewGuest* AsWebView() OVERRIDE; | 38 virtual WebViewGuest* AsWebView() OVERRIDE; |
39 virtual AdViewGuest* AsAdView() OVERRIDE; | 39 virtual AdViewGuest* AsAdView() OVERRIDE; |
40 | 40 |
41 // GuestDelegate implementation. | 41 // GuestDelegate implementation. |
42 virtual void AddMessageToConsole(int32 level, | 42 virtual void AddMessageToConsole(int32 level, |
43 const string16& message, | 43 const string16& message, |
44 int32 line_no, | 44 int32 line_no, |
45 const string16& source_id) OVERRIDE; | 45 const string16& source_id) OVERRIDE; |
46 virtual void LoadProgressed(double progress) OVERRIDE; | 46 virtual void LoadProgressed(double progress) OVERRIDE; |
47 virtual void Close() OVERRIDE; | 47 virtual void Close() OVERRIDE; |
48 virtual void EmbedderDestroyed() OVERRIDE; | |
49 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; | 48 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; |
50 virtual bool HandleKeyboardEvent( | 49 virtual bool HandleKeyboardEvent( |
51 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 50 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
52 virtual void LoadAbort(bool is_top_level, | 51 virtual void LoadAbort(bool is_top_level, |
53 const GURL& url, | 52 const GURL& url, |
54 const std::string& error_type) OVERRIDE; | 53 const std::string& error_type) OVERRIDE; |
55 virtual void RendererResponsive() OVERRIDE; | 54 virtual void RendererResponsive() OVERRIDE; |
56 virtual void RendererUnresponsive() OVERRIDE; | 55 virtual void RendererUnresponsive() OVERRIDE; |
57 virtual bool RequestPermission( | 56 virtual bool RequestPermission( |
58 BrowserPluginPermissionType permission_type, | 57 BrowserPluginPermissionType permission_type, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 int next_permission_request_id_; | 150 int next_permission_request_id_; |
152 | 151 |
153 // A map to store the callback for a request keyed by the request's id. | 152 // A map to store the callback for a request keyed by the request's id. |
154 typedef std::map<int, PermissionResponseCallback> RequestMap; | 153 typedef std::map<int, PermissionResponseCallback> RequestMap; |
155 RequestMap pending_permission_requests_; | 154 RequestMap pending_permission_requests_; |
156 | 155 |
157 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 156 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
158 }; | 157 }; |
159 | 158 |
160 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ | 159 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ |
OLD | NEW |