Index: extensions/browser/guest_view/extension_options/extension_options_guest_delegate.h |
diff --git a/extensions/browser/guest_view/extension_options/extension_options_guest_delegate.h b/extensions/browser/guest_view/extension_options/extension_options_guest_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fd5641f0673359b27fb7b946ed9ef8ab132e65e1 |
--- /dev/null |
+++ b/extensions/browser/guest_view/extension_options/extension_options_guest_delegate.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_DELEGATE_H_ |
+#define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_DELEGATE_H_ |
+ |
+namespace content { |
+struct ContextMenuParams; |
+struct OpenURLParams; |
+class WebContents; |
+} |
+ |
+namespace extensions { |
+// Interface to handle communication between ExtensionOptionsGuest (in |
+// extensions) with the browser. |
+class ExtensionOptionsGuestDelegate { |
+ public: |
+ virtual ~ExtensionOptionsGuestDelegate(); |
+ |
+ virtual void CreateChromeExtensionWebContentsObserver( |
+ content::WebContents* web_contents) = 0; |
+ |
+ // Shows the context menu for the guest. |
+ // Returns true if the context menu was handled. |
+ virtual bool HandleContextMenu(content::WebContents* web_contents, |
+ const content::ContextMenuParams& params) = 0; |
+ |
+ virtual content::WebContents* OpenURLInNewTab( |
+ content::WebContents* embedder_web_contents, |
+ const content::OpenURLParams& params) = 0; |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_DELEGATE_H_ |