2013-04-22 08:27:34 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-04-22 08:27:34 +00:00
|
|
|
// 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_
|
|
|
|
|
2014-03-16 00:30:26 +00:00
|
|
|
#include "atom/common/api/atom_bindings.h"
|
2013-04-22 08:27:34 +00:00
|
|
|
|
2013-12-10 06:14:05 +00:00
|
|
|
#include "base/strings/string16.h"
|
2013-09-20 14:55:42 +00:00
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
namespace base {
|
|
|
|
class ListValue;
|
|
|
|
}
|
|
|
|
|
2013-04-22 13:32:48 +00:00
|
|
|
namespace content {
|
|
|
|
class RenderView;
|
|
|
|
}
|
|
|
|
|
2014-06-28 14:33:00 +00:00
|
|
|
namespace blink {
|
2013-04-22 13:32:48 +00:00
|
|
|
class WebFrame;
|
|
|
|
}
|
|
|
|
|
2013-04-22 08:27:34 +00:00
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomRendererBindings : public AtomBindings {
|
|
|
|
public:
|
2013-12-23 14:08:45 +00:00
|
|
|
AtomRendererBindings();
|
2013-04-22 08:27:34 +00:00
|
|
|
virtual ~AtomRendererBindings();
|
|
|
|
|
|
|
|
// Call BindTo for process object of the frame.
|
2014-06-28 14:33:00 +00:00
|
|
|
void BindToFrame(blink::WebFrame* frame);
|
2013-04-22 08:27:34 +00:00
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
// Dispatch messages from browser.
|
2013-12-23 14:08:45 +00:00
|
|
|
void OnBrowserMessage(content::RenderView* render_view,
|
2014-06-28 14:33:00 +00:00
|
|
|
const base::string16& channel,
|
2013-04-23 12:57:14 +00:00
|
|
|
const base::ListValue& args);
|
2013-04-22 13:32:48 +00:00
|
|
|
|
2013-04-22 08:27:34 +00:00
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomRendererBindings);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2014-03-16 00:58:59 +00:00
|
|
|
#endif // ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
|