OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/pdf_resource.h" | 5 #include "ppapi/proxy/pdf_resource.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "gin/public/isolate_holder.h" | 13 #include "gin/v8_initializer.h" |
14 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
15 #include "ppapi/c/private/ppb_pdf.h" | 15 #include "ppapi/c/private/ppb_pdf.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
17 #include "ppapi/proxy/ppb_image_data_proxy.h" | 17 #include "ppapi/proxy/ppb_image_data_proxy.h" |
18 #include "ppapi/shared_impl/var.h" | 18 #include "ppapi/shared_impl/var.h" |
19 #include "third_party/icu/source/i18n/unicode/usearch.h" | 19 #include "third_party/icu/source/i18n/unicode/usearch.h" |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
22 namespace proxy { | 22 namespace proxy { |
23 | 23 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 203 } |
204 | 204 |
205 void PDFResource::SetLinkUnderCursor(const char* url) { | 205 void PDFResource::SetLinkUnderCursor(const char* url) { |
206 Post(RENDERER, PpapiHostMsg_PDF_SetLinkUnderCursor(url)); | 206 Post(RENDERER, PpapiHostMsg_PDF_SetLinkUnderCursor(url)); |
207 } | 207 } |
208 | 208 |
209 void PDFResource::GetV8ExternalSnapshotData(const char** natives_data_out, | 209 void PDFResource::GetV8ExternalSnapshotData(const char** natives_data_out, |
210 int* natives_size_out, | 210 int* natives_size_out, |
211 const char** snapshot_data_out, | 211 const char** snapshot_data_out, |
212 int* snapshot_size_out) { | 212 int* snapshot_size_out) { |
213 gin::IsolateHolder::GetV8ExternalSnapshotData(natives_data_out, | 213 gin::V8Initializer::GetV8ExternalSnapshotData( |
214 natives_size_out, snapshot_data_out, snapshot_size_out); | 214 natives_data_out, natives_size_out, snapshot_data_out, snapshot_size_out); |
215 } | 215 } |
216 | 216 |
217 } // namespace proxy | 217 } // namespace proxy |
218 } // namespace ppapi | 218 } // namespace ppapi |
OLD | NEW |