2013-04-22 08:27:34 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
#ifndef ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
|
|
|
|
#define ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
|
|
|
|
|
|
|
|
#include <iosfwd>
|
2013-04-22 08:27:34 +00:00
|
|
|
|
|
|
|
#include "common/api/atom_bindings.h"
|
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
namespace base {
|
|
|
|
class ListValue;
|
|
|
|
}
|
|
|
|
|
2013-04-22 13:32:48 +00:00
|
|
|
namespace content {
|
|
|
|
class RenderView;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace WebKit {
|
|
|
|
class WebFrame;
|
|
|
|
}
|
|
|
|
|
2013-04-22 08:27:34 +00:00
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomRendererBindings : public AtomBindings {
|
|
|
|
public:
|
2013-04-22 13:32:48 +00:00
|
|
|
explicit AtomRendererBindings(content::RenderView* render_view);
|
2013-04-22 08:27:34 +00:00
|
|
|
virtual ~AtomRendererBindings();
|
|
|
|
|
|
|
|
// Call BindTo for process object of the frame.
|
|
|
|
void BindToFrame(WebKit::WebFrame* frame);
|
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
// Dispatch messages from browser.
|
|
|
|
void OnRendererMessage(const std::string& channel,
|
|
|
|
const base::ListValue& args);
|
2013-04-22 13:32:48 +00:00
|
|
|
|
2013-04-22 08:27:34 +00:00
|
|
|
private:
|
2013-04-22 13:32:48 +00:00
|
|
|
content::RenderView* render_view_;
|
|
|
|
|
2013-04-22 08:27:34 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomRendererBindings);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
#endif // ATOM_RENDERER_API_ATOM_BINDINGS_H_
|