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

Side by Side Diff: ppapi/proxy/dispatcher.cc

Issue 10984094: Hook up PpapiPermissions in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ppapi/proxy/dispatcher.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ppapi/proxy/dispatcher.h" 5 #include "ppapi/proxy/dispatcher.h"
6 6
7 #include <string.h> // For memset. 7 #include <string.h> // For memset.
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "ppapi/proxy/ppapi_messages.h" 14 #include "ppapi/proxy/ppapi_messages.h"
15 #include "ppapi/proxy/var_serialization_rules.h" 15 #include "ppapi/proxy/var_serialization_rules.h"
16 16
17 namespace ppapi { 17 namespace ppapi {
18 namespace proxy { 18 namespace proxy {
19 19
20 Dispatcher::Dispatcher(PP_GetInterface_Func local_get_interface) 20 Dispatcher::Dispatcher(PP_GetInterface_Func local_get_interface,
21 : disallow_trusted_interfaces_(false), // TODO(brettw) make this settable. 21 const PpapiPermissions& permissions)
22 local_get_interface_(local_get_interface) { 22 : local_get_interface_(local_get_interface),
23 permissions_(permissions) {
23 } 24 }
24 25
25 Dispatcher::~Dispatcher() { 26 Dispatcher::~Dispatcher() {
26 } 27 }
27 28
28 void Dispatcher::AddFilter(IPC::Listener* listener) { 29 void Dispatcher::AddFilter(IPC::Listener* listener) {
29 filters_.push_back(listener); 30 filters_.push_back(listener);
30 } 31 }
31 32
32 InterfaceProxy* Dispatcher::GetInterfaceProxy(ApiID id) { 33 InterfaceProxy* Dispatcher::GetInterfaceProxy(ApiID id) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void Dispatcher::SetSerializationRules( 77 void Dispatcher::SetSerializationRules(
77 VarSerializationRules* var_serialization_rules) { 78 VarSerializationRules* var_serialization_rules) {
78 serialization_rules_ = var_serialization_rules; 79 serialization_rules_ = var_serialization_rules;
79 } 80 }
80 81
81 void Dispatcher::OnInvalidMessageReceived() { 82 void Dispatcher::OnInvalidMessageReceived() {
82 } 83 }
83 84
84 } // namespace proxy 85 } // namespace proxy
85 } // namespace ppapi 86 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/dispatcher.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698