| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void LoadAbort(bool is_top_level, | 55 virtual void LoadAbort(bool is_top_level, |
| 56 const GURL& url, | 56 const GURL& url, |
| 57 const std::string& error_type) OVERRIDE; | 57 const std::string& error_type) OVERRIDE; |
| 58 virtual void RendererResponsive() OVERRIDE; | 58 virtual void RendererResponsive() OVERRIDE; |
| 59 virtual void RendererUnresponsive() OVERRIDE; | 59 virtual void RendererUnresponsive() OVERRIDE; |
| 60 virtual bool RequestPermission( | 60 virtual bool RequestPermission( |
| 61 BrowserPluginPermissionType permission_type, | 61 BrowserPluginPermissionType permission_type, |
| 62 const base::DictionaryValue& request_info, | 62 const base::DictionaryValue& request_info, |
| 63 const PermissionResponseCallback& callback, | 63 const PermissionResponseCallback& callback, |
| 64 bool allowed_by_default) OVERRIDE; | 64 bool allowed_by_default) OVERRIDE; |
| 65 virtual GURL ResolveURL(const std::string& src) OVERRIDE; |
| 65 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) | 66 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) |
| 66 OVERRIDE; | 67 OVERRIDE; |
| 67 | 68 |
| 68 // NotificationObserver implementation. | 69 // NotificationObserver implementation. |
| 69 virtual void Observe(int type, | 70 virtual void Observe(int type, |
| 70 const content::NotificationSource& source, | 71 const content::NotificationSource& source, |
| 71 const content::NotificationDetails& details) OVERRIDE; | 72 const content::NotificationDetails& details) OVERRIDE; |
| 72 | 73 |
| 73 // If possible, navigate the guest to |relative_index| entries away from the | 74 // If possible, navigate the guest to |relative_index| entries away from the |
| 74 // current navigation entry. | 75 // current navigation entry. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 typedef std::map<int, PermissionResponseInfo> RequestMap; | 187 typedef std::map<int, PermissionResponseInfo> RequestMap; |
| 187 RequestMap pending_permission_requests_; | 188 RequestMap pending_permission_requests_; |
| 188 | 189 |
| 189 // True if the user agent is overridden. | 190 // True if the user agent is overridden. |
| 190 bool is_overriding_user_agent_; | 191 bool is_overriding_user_agent_; |
| 191 | 192 |
| 192 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 193 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ | 196 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ |
| OLD | NEW |