Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / xwalk_render_message_filter.h
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef XWALK_RUNTIME_BROWSER_XWALK_RENDER_MESSAGE_FILTER_H_
5 #define XWALK_RUNTIME_BROWSER_XWALK_RENDER_MESSAGE_FILTER_H_
6
7 #include "content/public/browser/browser_message_filter.h"
8 #include "url/gurl.h"
9
10 namespace xwalk {
11 // XWalkBrowserMessageFilter response to recieve and send message between
12 // browser process and renderer process.
13 class XWalkRenderMessageFilter : public content::BrowserMessageFilter {
14  public:
15   XWalkRenderMessageFilter();
16   bool OnMessageReceived(const IPC::Message& message) override;
17
18  private:
19 #if defined(OS_TIZEN)
20   void OnOpenLinkExternal(const GURL& url);
21 #endif
22   virtual ~XWalkRenderMessageFilter() {}
23
24   DISALLOW_COPY_AND_ASSIGN(XWalkRenderMessageFilter);
25 };
26 }  // namespace xwalk
27
28 #endif  // XWALK_RUNTIME_BROWSER_XWALK_RENDER_MESSAGE_FILTER_H_