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

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

Issue 1011133006: Move V8 snapshot loading code from isolate_holder to gin/v8_startup_data.{h,cc}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review comments. Created 5 years, 8 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
« gin/v8_initializer.h ('K') | « net/proxy/proxy_resolver_v8.cc ('k') | no next file » | 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) 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
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
OLDNEW
« gin/v8_initializer.h ('K') | « net/proxy/proxy_resolver_v8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698