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

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

Issue 718453003: Initialize V8 in PDFium from external files (plugin process only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
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 "ppapi/c/pp_errors.h" 14 #include "ppapi/c/pp_errors.h"
14 #include "ppapi/c/private/ppb_pdf.h" 15 #include "ppapi/c/private/ppb_pdf.h"
15 #include "ppapi/proxy/ppapi_messages.h" 16 #include "ppapi/proxy/ppapi_messages.h"
16 #include "ppapi/proxy/ppb_image_data_proxy.h" 17 #include "ppapi/proxy/ppb_image_data_proxy.h"
17 #include "ppapi/shared_impl/var.h" 18 #include "ppapi/shared_impl/var.h"
18 #include "third_party/icu/source/i18n/unicode/usearch.h" 19 #include "third_party/icu/source/i18n/unicode/usearch.h"
19 20
20 namespace ppapi { 21 namespace ppapi {
21 namespace proxy { 22 namespace proxy {
22 23
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 void PDFResource::SetSelectedText(const char* selected_text) { 199 void PDFResource::SetSelectedText(const char* selected_text) {
199 Post(RENDERER, 200 Post(RENDERER,
200 PpapiHostMsg_PDF_SetSelectedText(base::UTF8ToUTF16(selected_text))); 201 PpapiHostMsg_PDF_SetSelectedText(base::UTF8ToUTF16(selected_text)));
201 } 202 }
202 203
203 void PDFResource::SetLinkUnderCursor(const char* url) { 204 void PDFResource::SetLinkUnderCursor(const char* url) {
204 Post(RENDERER, PpapiHostMsg_PDF_SetLinkUnderCursor(url)); 205 Post(RENDERER, PpapiHostMsg_PDF_SetLinkUnderCursor(url));
205 } 206 }
206 207
208 void PDFResource::GetV8ExternalSnapshotData(const char** natives_data_out,
209 int* natives_size_out,
210 const char** snapshot_data_out,
211 int* snapshot_size_out) {
212 gin::IsolateHolder::GetV8ExternalSnapshotData(natives_data_out,
213 natives_size_out, snapshot_data_out, snapshot_size_out);
raymes 2014/11/11 03:26:39 nit: 4 space indent
baixo1 2014/11/11 10:56:11 Done.
214 }
215
207 } // namespace proxy 216 } // namespace proxy
208 } // namespace ppapi 217 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698