| Index: chrome/browser/guest_view/extension_options/extension_options_guest.h
|
| diff --git a/chrome/browser/guest_view/extension_options/extension_options_guest.h b/chrome/browser/guest_view/extension_options/extension_options_guest.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8719bdf9cef29a89a0b3e8db0185ea3f7a045b2a
|
| --- /dev/null
|
| +++ b/chrome/browser/guest_view/extension_options/extension_options_guest.h
|
| @@ -0,0 +1,54 @@
|
| +// 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 CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_
|
| +#define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/guest_view/guest_view.h"
|
| +#include "extensions/browser/extension_function_dispatcher.h"
|
| +#include "url/gurl.h"
|
| +
|
| +namespace content {
|
| +class BrowserContext;
|
| +}
|
| +
|
| +class ExtensionOptionsGuest
|
| + : public GuestView<ExtensionOptionsGuest>,
|
| + public extensions::ExtensionFunctionDispatcher::Delegate {
|
| + public:
|
| + static const char Type[];
|
| +
|
| + ExtensionOptionsGuest(content::BrowserContext* browser_context,
|
| + int guest_instance_id);
|
| +
|
| + // GuestViewBase implementation.
|
| + virtual bool CanEmbedderUseGuestView(
|
| + const std::string& embedder_extension_id) OVERRIDE;
|
| + virtual void CreateWebContents(
|
| + const std::string& embedder_extension_id,
|
| + int embedder_render_process_id,
|
| + const base::DictionaryValue& create_params,
|
| + const WebContentsCreatedCallback& callback) OVERRIDE;
|
| + virtual void DidAttachToEmbedder() OVERRIDE;
|
| + virtual void DidInitialize() OVERRIDE;
|
| +
|
| + // ExtensionFunctionDispatcher::Delegate implementation.
|
| + virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
|
| +
|
| + // content::WebContentsObserver implementation.
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| + private:
|
| + virtual ~ExtensionOptionsGuest();
|
| + void OnRequest(const ExtensionHostMsg_Request_Params& params);
|
| +
|
| + scoped_ptr<extensions::ExtensionFunctionDispatcher>
|
| + extension_function_dispatcher_;
|
| + GURL options_page_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_
|
|
|