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

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

Issue 14371021: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, track src/webkit gypi changes. Created 7 years, 7 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
« no previous file with comments | « ppapi/shared_impl/api_id.h ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 host_resource_ = HostResource(); 69 host_resource_ = HostResource();
70 } 70 }
71 71
72 void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params, 72 void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params,
73 const IPC::Message& msg) { 73 const IPC::Message& msg) {
74 NOTREACHED(); 74 NOTREACHED();
75 } 75 }
76 76
77 void Resource::Log(PP_LogLevel level, const std::string& message) { 77 void Resource::Log(PP_LogLevel level, const std::string& message) {
78 printf("Log:%s\n", message.c_str());
78 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(), 79 PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(),
79 message); 80 message);
80 } 81 }
81 82
82 void Resource::RemoveFromResourceTracker() { 83 void Resource::RemoveFromResourceTracker() {
83 PpapiGlobals::Get()->GetResourceTracker()->RemoveResource(this); 84 PpapiGlobals::Get()->GetResourceTracker()->RemoveResource(this);
84 } 85 }
85 86
86 #define DEFINE_TYPE_GETTER(RESOURCE) \ 87 #define DEFINE_TYPE_GETTER(RESOURCE) \
87 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; } 88 thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; }
88 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER) 89 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER)
89 #undef DEFINE_TYPE_GETTER 90 #undef DEFINE_TYPE_GETTER
90 91
91 } // namespace ppapi 92 } // namespace ppapi
92 93
OLDNEW
« no previous file with comments | « ppapi/shared_impl/api_id.h ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698