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

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

Issue 9158005: RFC: Add an interface for having the browser open a pnacl support file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a test, do some tweaks. Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class BrowserPpp; 55 class BrowserPpp;
56 } 56 }
57 57
58 namespace plugin { 58 namespace plugin {
59 59
60 class ErrorInfo; 60 class ErrorInfo;
61 class Manifest; 61 class Manifest;
62 class ProgressEvent; 62 class ProgressEvent;
63 class ScriptablePlugin; 63 class ScriptablePlugin;
64 64
65 typedef int (*GetReadonlyPnaclFdFunc)(const char* filename);
66 extern GetReadonlyPnaclFdFunc get_readonly_pnacl_fd;
67
65 class Plugin : public pp::InstancePrivate { 68 class Plugin : public pp::InstancePrivate {
66 public: 69 public:
67 // Factory method for creation. 70 // Factory method for creation.
68 static Plugin* New(PP_Instance instance); 71 static Plugin* New(PP_Instance instance);
69 72
70 // ----- Methods inherited from pp::Instance: 73 // ----- Methods inherited from pp::Instance:
71 74
72 // Initializes this plugin with <embed/object ...> tag attribute count |argc|, 75 // Initializes this plugin with <embed/object ...> tag attribute count |argc|,
73 // names |argn| and values |argn|. Returns false on failure. 76 // names |argn| and values |argn|. Returns false on failure.
74 // Gets called by the browser right after New(). 77 // Gets called by the browser right after New().
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // in UpdateDownloadProgress to map a url loader back to the URL being 521 // in UpdateDownloadProgress to map a url loader back to the URL being
519 // downloaded. 522 // downloaded.
520 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; 523 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const;
521 524
522 int64_t time_of_last_progress_event_; 525 int64_t time_of_last_progress_event_;
523 }; 526 };
524 527
525 } // namespace plugin 528 } // namespace plugin
526 529
527 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 530 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698