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

Side by Side Diff: ppapi/shared_impl/resource.cc

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
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/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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return pp_resource(); 49 return pp_resource();
50 } 50 }
51 51
52 void Resource::LastPluginRefWasDeleted() { 52 void Resource::LastPluginRefWasDeleted() {
53 } 53 }
54 54
55 void Resource::InstanceWasDeleted() { 55 void Resource::InstanceWasDeleted() {
56 host_resource_ = HostResource(); 56 host_resource_ = HostResource();
57 } 57 }
58 58
59 void Resource::OnReplyReceived(int sequence, 59 void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params,
60 int32_t result,
61 const IPC::Message& msg) { 60 const IPC::Message& msg) {
62 NOTREACHED(); 61 NOTREACHED();
63 } 62 }
64 63
65 void Resource::Log(PP_LogLevel_Dev level, const std::string& message) { 64 void Resource::Log(PP_LogLevel_Dev level, const std::string& message) {
66 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(), 65 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(),
67 message); 66 message);
68 } 67 }
69 68
70 #define DEFINE_TYPE_GETTER(RESOURCE) \ 69 #define DEFINE_TYPE_GETTER(RESOURCE) \
71 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; } 70 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; }
72 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER) 71 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER)
73 #undef DEFINE_TYPE_GETTER 72 #undef DEFINE_TYPE_GETTER
74 73
75 } // namespace ppapi 74 } // namespace ppapi
76 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698