pepper_message_filter.h revision d0247b1b59f9c528cb6df88b4f2b9afaf80d181e
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, 28 bool* message_was_ok) OVERRIDE; 29 30 protected: 31 virtual ~PepperMessageFilter(); 32 33 private: 34 void OnX509CertificateParseDER(const std::vector<char>& der, 35 bool* succeeded, 36 ppapi::PPB_X509Certificate_Fields* result); 37 38 DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter); 39}; 40 41} // namespace content 42 43#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_ 44