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

Side by Side Diff: chrome/browser/guest_view/extension_options/chrome_extension_options_guest_delegate.h

Issue 562353002: Refactor ExtensionOptionsGuestDelegate to have an ExtensionOptionsGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 3 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_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_GUE ST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_GUE ST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_GUE ST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_GUE ST_DELEGATE_H_
7 7
8 #include "extensions/browser/guest_view/extension_options/extension_options_gues t_delegate.h" 8 #include "extensions/browser/guest_view/extension_options/extension_options_gues t_delegate.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class ExtensionOptionsGuest;
15
14 class ChromeExtensionOptionsGuestDelegate 16 class ChromeExtensionOptionsGuestDelegate
15 : public ExtensionOptionsGuestDelegate { 17 : public ExtensionOptionsGuestDelegate {
16 public: 18 public:
17 ChromeExtensionOptionsGuestDelegate(); 19 explicit ChromeExtensionOptionsGuestDelegate(ExtensionOptionsGuest* guest);
18 virtual ~ChromeExtensionOptionsGuestDelegate(); 20 virtual ~ChromeExtensionOptionsGuestDelegate();
19 21
20 virtual void CreateChromeExtensionWebContentsObserver( 22 virtual void DidInitialize() OVERRIDE;
21 content::WebContents* web_contents) OVERRIDE;
22 23
23 virtual bool HandleContextMenu( 24 virtual bool HandleContextMenu(
24 content::WebContents* web_contents,
25 const content::ContextMenuParams& params) OVERRIDE; 25 const content::ContextMenuParams& params) OVERRIDE;
26 26
27 virtual content::WebContents* OpenURLInNewTab( 27 virtual content::WebContents* OpenURLInNewTab(
28 content::WebContents* embedder_web_contents,
29 const content::OpenURLParams& params) OVERRIDE; 28 const content::OpenURLParams& params) OVERRIDE;
30 29
31 private: 30 private:
32 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionOptionsGuestDelegate); 31 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionOptionsGuestDelegate);
33 }; 32 };
34 33
35 } // namespace extensions 34 } // namespace extensions
36 35
37 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_ GUEST_DELEGATE_H_ 36 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_CHROME_EXTENSION_OPTIONS_ GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698