From a65ac4fc0cd0c5f4c4c7e2f0263172493e9cf6e0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 23 Jun 2009 23:32:12 +0000 Subject: [PATCH] missing files --- direct/src/plugin_npapi/ppDownloadRequest.I | 27 ++++++++++++ direct/src/plugin_npapi/ppDownloadRequest.cxx | 15 +++++++ direct/src/plugin_npapi/ppDownloadRequest.h | 44 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 direct/src/plugin_npapi/ppDownloadRequest.I create mode 100644 direct/src/plugin_npapi/ppDownloadRequest.cxx create mode 100644 direct/src/plugin_npapi/ppDownloadRequest.h diff --git a/direct/src/plugin_npapi/ppDownloadRequest.I b/direct/src/plugin_npapi/ppDownloadRequest.I new file mode 100644 index 0000000000..662da114f0 --- /dev/null +++ b/direct/src/plugin_npapi/ppDownloadRequest.I @@ -0,0 +1,27 @@ +// Filename: ppDownloadRequest.I +// Created by: drose (23Jun09) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Function: PPDownloadRequest::Constructor +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +inline PPDownloadRequest:: +PPDownloadRequest(RequestType rtype, int user_id) : + _rtype(rtype), + _user_id(user_id) +{ +} + diff --git a/direct/src/plugin_npapi/ppDownloadRequest.cxx b/direct/src/plugin_npapi/ppDownloadRequest.cxx new file mode 100644 index 0000000000..e7e4b60d97 --- /dev/null +++ b/direct/src/plugin_npapi/ppDownloadRequest.cxx @@ -0,0 +1,15 @@ +// Filename: ppDownloadRequest.cxx +// Created by: drose (23Jun09) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +#include "ppDownloadRequest.h" diff --git a/direct/src/plugin_npapi/ppDownloadRequest.h b/direct/src/plugin_npapi/ppDownloadRequest.h new file mode 100644 index 0000000000..d2e8a96888 --- /dev/null +++ b/direct/src/plugin_npapi/ppDownloadRequest.h @@ -0,0 +1,44 @@ +// Filename: ppDownloadRequest.h +// Created by: drose (23Jun09) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +#ifndef PPDOWNLOADREQUEST_H +#define PPDOWNLOADREQUEST_H + +#include "nppanda3d_common.h" + +//////////////////////////////////////////////////////////////////// +// Class : PPDownloadRequest +// Description : An instance of this object is assigned as the +// notifyData for URL requests, to help the plugin +// associate streams with requests. +//////////////////////////////////////////////////////////////////// +class PPDownloadRequest { +public: + enum RequestType { + RT_instance_data, + RT_core_dll, + RT_user + }; + + inline PPDownloadRequest(RequestType rtype, int user_id = 0); + +public: + RequestType _rtype; + int _user_id; +}; + +#include "ppDownloadRequest.I" + +#endif +