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

Side by Side Diff: ppapi/proxy/ppb_pdf_proxy.cc

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/proxy/ppb_pdf_proxy.h" 5 #include "ppapi/proxy/ppb_pdf_proxy.h"
6 6
7 #include <string.h> // For memcpy. 7 #include <string.h> // For memcpy.
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "ppapi/c/private/ppb_pdf.h" 14 #include "ppapi/c/private/ppb_pdf.h"
15 #include "ppapi/proxy/plugin_dispatcher.h" 15 #include "ppapi/proxy/plugin_dispatcher.h"
16 #include "ppapi/proxy/plugin_resource.h" 16 #include "ppapi/proxy/plugin_resource.h"
17 #include "ppapi/proxy/plugin_resource_tracker.h" 17 #include "ppapi/proxy/plugin_resource_tracker.h"
18 #include "ppapi/proxy/ppapi_messages.h" 18 #include "ppapi/proxy/ppapi_messages.h"
19 #include "ppapi/thunk/enter.h" 19 #include "ppapi/thunk/enter.h"
20 #include "ppapi/thunk/ppb_pdf_api.h" 20 #include "ppapi/thunk/ppb_pdf_api.h"
21 21
22 using ppapi::HostResource;
22 using ppapi::thunk::PPB_PDFFont_API; 23 using ppapi::thunk::PPB_PDFFont_API;
23 using ppapi::thunk::EnterResource; 24 using ppapi::thunk::EnterResource;
24 25
25 namespace pp { 26 namespace pp {
26 namespace proxy { 27 namespace proxy {
27 28
28 class PrivateFontFile : public PluginResource, 29 class PrivateFontFile : public PluginResource,
29 public PPB_PDFFont_API { 30 public PPB_PDFFont_API {
30 public: 31 public:
31 PrivateFontFile(const HostResource& resource) : PluginResource(resource) { 32 PrivateFontFile(const HostResource& resource) : PluginResource(resource) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 font_file.host_resource(), table, NULL, &table_length)) 185 font_file.host_resource(), table, NULL, &table_length))
185 return; 186 return;
186 187
187 result->resize(table_length); 188 result->resize(table_length);
188 ppb_pdf_target()->GetFontTableForPrivateFontFile(font_file.host_resource(), 189 ppb_pdf_target()->GetFontTableForPrivateFontFile(font_file.host_resource(),
189 table, const_cast<char*>(result->c_str()), &table_length); 190 table, const_cast<char*>(result->c_str()), &table_length);
190 } 191 }
191 192
192 } // namespace proxy 193 } // namespace proxy
193 } // namespace pp 194 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698