OLD | NEW |
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/host/resource_host.h" | 5 #include "ppapi/host/resource_host.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/host/ppapi_host.h" | 11 #include "ppapi/host/ppapi_host.h" |
10 #include "ppapi/host/resource_message_filter.h" | 12 #include "ppapi/host/resource_message_filter.h" |
11 | 13 |
12 namespace ppapi { | 14 namespace ppapi { |
13 namespace host { | 15 namespace host { |
14 | 16 |
15 ResourceHost::ResourceHost(PpapiHost* host, | 17 ResourceHost::ResourceHost(PpapiHost* host, |
16 PP_Instance instance, | 18 PP_Instance instance, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return false; | 70 return false; |
69 } | 71 } |
70 | 72 |
71 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { | 73 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { |
72 message_filters_.push_back(filter); | 74 message_filters_.push_back(filter); |
73 filter->OnFilterAdded(this); | 75 filter->OnFilterAdded(this); |
74 } | 76 } |
75 | 77 |
76 } // namespace host | 78 } // namespace host |
77 } // namespace ppapi | 79 } // namespace ppapi |
OLD | NEW |