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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/host/ppapi_host.h" | 9 #include "ppapi/host/ppapi_host.h" |
10 #include "ppapi/host/resource_message_filter.h" | 10 #include "ppapi/host/resource_message_filter.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 DCHECK(!pp_resource_); | 41 DCHECK(!pp_resource_); |
42 pp_resource_ = pp_resource; | 42 pp_resource_ = pp_resource; |
43 DidConnectPendingHostToResource(); | 43 DidConnectPendingHostToResource(); |
44 } | 44 } |
45 | 45 |
46 void ResourceHost::SendReply(const ReplyMessageContext& context, | 46 void ResourceHost::SendReply(const ReplyMessageContext& context, |
47 const IPC::Message& msg) { | 47 const IPC::Message& msg) { |
48 host_->SendReply(context, msg); | 48 host_->SendReply(context, msg); |
49 } | 49 } |
50 | 50 |
| 51 bool ResourceHost::IsCompositorHost() { |
| 52 return false; |
| 53 } |
| 54 |
51 bool ResourceHost::IsFileRefHost() { | 55 bool ResourceHost::IsFileRefHost() { |
52 return false; | 56 return false; |
53 } | 57 } |
54 | 58 |
55 bool ResourceHost::IsFileSystemHost() { | 59 bool ResourceHost::IsFileSystemHost() { |
56 return false; | 60 return false; |
57 } | 61 } |
58 | 62 |
59 bool ResourceHost::IsMediaStreamVideoTrackHost() { | 63 bool ResourceHost::IsMediaStreamVideoTrackHost() { |
60 return false; | 64 return false; |
61 } | 65 } |
62 | 66 |
63 bool ResourceHost::IsGraphics2DHost() { | 67 bool ResourceHost::IsGraphics2DHost() { |
64 return false; | 68 return false; |
65 } | 69 } |
66 | 70 |
67 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { | 71 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { |
68 message_filters_.push_back(filter); | 72 message_filters_.push_back(filter); |
69 filter->OnFilterAdded(this); | 73 filter->OnFilterAdded(this); |
70 } | 74 } |
71 | 75 |
72 } // namespace host | 76 } // namespace host |
73 } // namespace ppapi | 77 } // namespace ppapi |
OLD | NEW |