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/shared_impl/resource.h" | 5 #include "ppapi/shared_impl/resource.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ppapi/shared_impl/resource_tracker.h" | 8 #include "ppapi/shared_impl/resource_tracker.h" |
9 #include "ppapi/shared_impl/ppapi_globals.h" | 9 #include "ppapi/shared_impl/ppapi_globals.h" |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 InstanceWasDeleted(); | 63 InstanceWasDeleted(); |
64 | 64 |
65 host_resource_ = HostResource(); | 65 host_resource_ = HostResource(); |
66 } | 66 } |
67 | 67 |
68 void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params, | 68 void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params, |
69 const IPC::Message& msg) { | 69 const IPC::Message& msg) { |
70 NOTREACHED(); | 70 NOTREACHED(); |
71 } | 71 } |
72 | 72 |
73 void Resource::Log(PP_LogLevel_Dev level, const std::string& message) { | 73 void Resource::Log(PP_LogLevel level, const std::string& message) { |
74 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(), | 74 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(), |
75 message); | 75 message); |
76 } | 76 } |
77 | 77 |
78 #define DEFINE_TYPE_GETTER(RESOURCE) \ | 78 #define DEFINE_TYPE_GETTER(RESOURCE) \ |
79 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; } | 79 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; } |
80 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER) | 80 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER) |
81 #undef DEFINE_TYPE_GETTER | 81 #undef DEFINE_TYPE_GETTER |
82 | 82 |
83 } // namespace ppapi | 83 } // namespace ppapi |
84 | 84 |
OLD | NEW |