Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: content/browser/renderer_host/pepper/pepper_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/public/browser/browser_message_filter.h" 13 #include "content/public/browser/browser_message_filter.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 class PPB_X509Certificate_Fields; 16 class PPB_X509Certificate_Fields;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 // Message filter that handles IPC for PPB_X509Certificate_Private. 21 // Message filter that handles IPC for PPB_X509Certificate_Private.
22 class PepperMessageFilter : public BrowserMessageFilter { 22 class PepperMessageFilter : public BrowserMessageFilter {
23 public: 23 public:
24 PepperMessageFilter(); 24 PepperMessageFilter();
25 25
26 // BrowserMessageFilter methods. 26 // BrowserMessageFilter methods.
27 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
28 bool* message_was_ok) OVERRIDE;
29 28
30 protected: 29 protected:
31 virtual ~PepperMessageFilter(); 30 virtual ~PepperMessageFilter();
32 31
33 private: 32 private:
34 void OnX509CertificateParseDER(const std::vector<char>& der, 33 void OnX509CertificateParseDER(const std::vector<char>& der,
35 bool* succeeded, 34 bool* succeeded,
36 ppapi::PPB_X509Certificate_Fields* result); 35 ppapi::PPB_X509Certificate_Fields* result);
37 36
38 DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter); 37 DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter);
39 }; 38 };
40 39
41 } // namespace content 40 } // namespace content
42 41
43 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_ 42 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698