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

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

Issue 11360052: Add a 'NACL' plugin type to PepperMessageFilter so we can block private APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // This class is used in two contexts, both supporting PPAPI plugins. The first 55 // This class is used in two contexts, both supporting PPAPI plugins. The first
56 // is on the renderer->browser channel, to handle requests from in-process 56 // is on the renderer->browser channel, to handle requests from in-process
57 // PPAPI plugins and any requests that the PPAPI implementation code in the 57 // PPAPI plugins and any requests that the PPAPI implementation code in the
58 // renderer needs to make. The second is on the plugin->browser channel to 58 // renderer needs to make. The second is on the plugin->browser channel to
59 // handle requests that out-of-process plugins send directly to the browser. 59 // handle requests that out-of-process plugins send directly to the browser.
60 class PepperMessageFilter 60 class PepperMessageFilter
61 : public BrowserMessageFilter, 61 : public BrowserMessageFilter,
62 public net::NetworkChangeNotifier::IPAddressObserver { 62 public net::NetworkChangeNotifier::IPAddressObserver {
63 public: 63 public:
64 enum ProcessType { PLUGIN, RENDERER }; 64 enum ProcessType { PLUGIN, RENDERER, NACL };
65 65
66 // Constructor when used in the context of a render process (the argument is 66 // Constructor when used in the context of a render process (the argument is
67 // provided for sanity checking). 67 // provided for sanity checking).
68 PepperMessageFilter(ProcessType type, 68 PepperMessageFilter(ProcessType type,
69 int process_id, 69 int process_id,
70 BrowserContext* browser_context); 70 BrowserContext* browser_context);
71 71
72 // Constructor when used in the context of a PPAPI process (the argument is 72 // Constructor when used in the context of a PPAPI process (the argument is
73 // provided for sanity checking). 73 // provided for sanity checking).
74 PepperMessageFilter(ProcessType type, 74 PepperMessageFilter(ProcessType type,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 FilePath browser_path_; 267 FilePath browser_path_;
268 bool incognito_; 268 bool incognito_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter); 270 DISALLOW_COPY_AND_ASSIGN(PepperMessageFilter);
271 }; 271 };
272 272
273 } // namespace content 273 } // namespace content
274 274
275 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_ 275 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698