Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/nsPrintSession.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
 * License, v. 2.0. If a copy of the MPL was not distributed with this
4
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsPrintSession.h"
7
8
#include "mozilla/layout/RemotePrintJobChild.h"
9
10
typedef mozilla::layout::RemotePrintJobChild RemotePrintJobChild;
11
12
//*****************************************************************************
13
//***    nsPrintSession
14
//*****************************************************************************
15
16
NS_IMPL_ISUPPORTS(nsPrintSession, nsIPrintSession, nsISupportsWeakReference)
17
                             
18
//-----------------------------------------------------------------------------
19
nsPrintSession::nsPrintSession()
20
0
{
21
0
}
22
23
//-----------------------------------------------------------------------------
24
nsPrintSession::~nsPrintSession()
25
0
{
26
0
}
27
28
//-----------------------------------------------------------------------------
29
nsresult nsPrintSession::Init()
30
0
{
31
0
  return NS_OK;
32
0
}
33
34
NS_IMETHODIMP
35
nsPrintSession::GetRemotePrintJob(RemotePrintJobChild** aRemotePrintJob)
36
0
{
37
0
  MOZ_ASSERT(aRemotePrintJob);
38
0
  RefPtr<RemotePrintJobChild> result = mRemotePrintJob;
39
0
  result.forget(aRemotePrintJob);
40
0
  return NS_OK;
41
0
}
42
43
NS_IMETHODIMP
44
nsPrintSession::SetRemotePrintJob(RemotePrintJobChild* aRemotePrintJob)
45
0
{
46
0
  mRemotePrintJob = aRemotePrintJob;
47
0
  return NS_OK;
48
0
}