1// Copyright (c) 2012 The Chromium Authors. 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
5#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
6#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
7
8#include <vector>
9
10#include "base/basictypes.h"
11#include "base/compiler_specific.h"
12#include "base/memory/scoped_ptr.h"
13#include "content/public/browser/browser_message_filter.h"
14
15namespace ppapi {
16class PPB_X509Certificate_Fields;
17}
18
19namespace content {
20
21// Message filter that handles IPC for PPB_X509Certificate_Private.
22class PepperMessageFilter : public BrowserMessageFilter {
23 public:
24  PepperMessageFilter();
25
26  // BrowserMessageFilter methods.
27  virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
28
29 protected:
30  virtual ~PepperMessageFilter();
31
32 private:
33  void OnX509CertificateParseDER(const std::vector<char>& der,
34                                 bool* succeeded,
35                                 ppapi::PPB_X509Certificate_Fields* result);
36
37  DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter);
38};
39
40}  // namespace content
41
42#endif  // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
43