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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/plugin.h

Issue 8301006: Packaged (CRX) extensions shouldn't be able to get 'dev' interfaces in NaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 // -*- c++ -*- 1 // -*- c++ -*-
2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // The portable representation of an instance and root scriptable object. 6 // The portable representation of an instance and root scriptable object.
7 // The PPAPI version of the plugin instantiates a subclass of this class. 7 // The PPAPI version of the plugin instantiates a subclass of this class.
8 8
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 ErrorInfo* error_info, 367 ErrorInfo* error_info,
368 pp::CompletionCallback init_done_cb, 368 pp::CompletionCallback init_done_cb,
369 pp::CompletionCallback crash_cb); 369 pp::CompletionCallback crash_cb);
370 bool StartSrpcServices(NaClSubprocess* subprocess, ErrorInfo* error_info); 370 bool StartSrpcServices(NaClSubprocess* subprocess, ErrorInfo* error_info);
371 bool StartSrpcServicesCommon(NaClSubprocess* subprocess, 371 bool StartSrpcServicesCommon(NaClSubprocess* subprocess,
372 ErrorInfo* error_info); 372 ErrorInfo* error_info);
373 bool StartJSObjectProxy(NaClSubprocess* subprocess, ErrorInfo* error_info); 373 bool StartJSObjectProxy(NaClSubprocess* subprocess, ErrorInfo* error_info);
374 374
375 MethodInfo* GetMethodInfo(uintptr_t method_id, CallType call_type); 375 MethodInfo* GetMethodInfo(uintptr_t method_id, CallType call_type);
376 376
377 // Check url and decide if PPAPI Dev interfaces are required.
378 bool RequiresDevInterfaces(const nacl::string& manifest_url);
379
380 // Callback used when getting the URL for the .nexe file. If the URL loading 377 // Callback used when getting the URL for the .nexe file. If the URL loading
381 // is successful, the file descriptor is opened and can be passed to sel_ldr 378 // is successful, the file descriptor is opened and can be passed to sel_ldr
382 // with the sandbox on. 379 // with the sandbox on.
383 void NexeFileDidOpen(int32_t pp_error); 380 void NexeFileDidOpen(int32_t pp_error);
384 void NexeFileDidOpenContinuation(int32_t pp_error); 381 void NexeFileDidOpenContinuation(int32_t pp_error);
385 382
386 // Callback used when the reverse channel closes. This is an 383 // Callback used when the reverse channel closes. This is an
387 // asynchronous event that might turn into a JavaScript error or 384 // asynchronous event that might turn into a JavaScript error or
388 // crash event -- this is controlled by the two state variables 385 // crash event -- this is controlled by the two state variables
389 // nacl_ready_state_ and nexe_error_reported_: If an error or crash 386 // nacl_ready_state_ and nexe_error_reported_: If an error or crash
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 int64_t total_bytes_to_be_sent, 549 int64_t total_bytes_to_be_sent,
553 int64_t bytes_received, 550 int64_t bytes_received,
554 int64_t total_bytes_to_be_received); 551 int64_t total_bytes_to_be_received);
555 552
556 int64_t last_event_bytes_received_; 553 int64_t last_event_bytes_received_;
557 }; 554 };
558 555
559 } // namespace plugin 556 } // namespace plugin
560 557
561 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 558 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698