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

Unified Diff: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h

Issue 497843002: GuestViews should be able to specify task manager entries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h
diff --git a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h
index 1dc074edbbf19d77095377a82a93a0b0a8f549f4..b9874e0a44177bc194e2cf9fd732453e359f0bec 100644
--- a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h
+++ b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h
@@ -6,20 +6,28 @@
#define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_CHROME_APP_VIEW_GUEST_DELEGATE_H_
#include "content/public/common/context_menu_params.h"
+#include "extensions/browser/guest_view/app_view/app_view_guest.h"
#include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h"
namespace extensions {
class ChromeAppViewGuestDelegate : public AppViewGuestDelegate {
public:
- ChromeAppViewGuestDelegate();
+ explicit ChromeAppViewGuestDelegate(
+ extensions::AppViewGuest* app_view_guest);
virtual ~ChromeAppViewGuestDelegate();
+ // AppViewGuestDelegate implemenation.
+ virtual base::string16 GetTaskName() const OVERRIDE;
virtual bool HandleContextMenu(
content::WebContents* web_contents,
const content::ContextMenuParams& params) OVERRIDE;
private:
+ content::WebContents* guest_web_contents() const {
+ return app_view_guest()->guest_web_contents();
+ }
+
DISALLOW_COPY_AND_ASSIGN(ChromeAppViewGuestDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698