| Index: chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h
|
| diff --git a/chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h b/chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..85ee3ccaf73244ec326d5e67a45200b782d8e072
|
| --- /dev/null
|
| +++ b/chrome/renderer/browser_plugin/chrome_browser_plugin_delegate.h
|
| @@ -0,0 +1,38 @@
|
| +// 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_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
|
| +#define CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
|
| +
|
| +#include "content/public/renderer/browser_plugin_delegate.h"
|
| +
|
| +#include "content/public/renderer/render_view_observer.h"
|
| +#include "ipc/ipc_listener.h"
|
| +
|
| +class ChromeBrowserPluginDelegate : public content::BrowserPluginDelegate,
|
| + public content::RenderViewObserver {
|
| + public:
|
| + ChromeBrowserPluginDelegate(int routing_id,
|
| + int element_id,
|
| + const std::string& mime_type);
|
| + virtual ~ChromeBrowserPluginDelegate();
|
| +
|
| + // BrowserPluginDelegate implementation.
|
| + virtual void DidFinishLoading(const std::string& html_string) OVERRIDE;
|
| +
|
| + // RenderViewObserver.
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| + private:
|
| + void OnCreateMimeHandlerViewGuestACK(int browser_plugin_delegate,
|
| + int guest_instance_id);
|
| +
|
| + const int routing_id_;
|
| + const int element_id_;
|
| + const std::string mime_type_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginDelegate);
|
| +};
|
| +
|
| +#endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_DELEGATE_H_
|
|
|