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 | |
55 bool ResourceHost::IsFileRefHost() { | 51 bool ResourceHost::IsFileRefHost() { |
56 return false; | 52 return false; |
57 } | 53 } |
58 | 54 |
59 bool ResourceHost::IsFileSystemHost() { | 55 bool ResourceHost::IsFileSystemHost() { |
60 return false; | 56 return false; |
61 } | 57 } |
62 | 58 |
63 bool ResourceHost::IsMediaStreamVideoTrackHost() { | 59 bool ResourceHost::IsMediaStreamVideoTrackHost() { |
64 return false; | 60 return false; |
65 } | 61 } |
66 | 62 |
67 bool ResourceHost::IsGraphics2DHost() { | 63 bool ResourceHost::IsGraphics2DHost() { |
68 return false; | 64 return false; |
69 } | 65 } |
70 | 66 |
71 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { | 67 void ResourceHost::AddFilter(scoped_refptr<ResourceMessageFilter> filter) { |
72 message_filters_.push_back(filter); | 68 message_filters_.push_back(filter); |
73 filter->OnFilterAdded(this); | 69 filter->OnFilterAdded(this); |
74 } | 70 } |
75 | 71 |
76 } // namespace host | 72 } // namespace host |
77 } // namespace ppapi | 73 } // namespace ppapi |
OLD | NEW |