manage the lifetime of streams created
This commit is contained in:
parent
0ab37da785
commit
945e26750e
9 changed files with 216 additions and 31 deletions
|
@ -15,12 +15,15 @@ namespace base {
|
|||
class ListValue;
|
||||
}
|
||||
|
||||
namespace content {
|
||||
class StreamInfo;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
||||
class PdfViewerHandler : public content::WebUIMessageHandler {
|
||||
public:
|
||||
PdfViewerHandler(const std::string& stream_url,
|
||||
const std::string& original_url);
|
||||
explicit PdfViewerHandler(const std::string& view_id);
|
||||
~PdfViewerHandler() override;
|
||||
|
||||
// WebUIMessageHandler implementation.
|
||||
|
@ -37,8 +40,8 @@ class PdfViewerHandler : public content::WebUIMessageHandler {
|
|||
// Keeps track of events related to zooming.
|
||||
std::unique_ptr<content::HostZoomMap::Subscription>
|
||||
host_zoom_map_subscription_;
|
||||
std::string stream_url_;
|
||||
std::string original_url_;
|
||||
std::unique_ptr<content::StreamInfo> stream_;
|
||||
std::string view_id_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(PdfViewerHandler);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue