Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/toolkit/components/thumbnails/PageThumbsProtocol.h
Line
Count
Source (jump to first uncovered line)
1
//* -*- Mode: C++; tab-width: 8; 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
#ifndef PageThumbsProtocol_h__
7
#define PageThumbsProtocol_h__
8
9
#include "nsIProtocolHandler.h"
10
#include "nsString.h"
11
12
// {5a4ae9b5-f475-48ae-9dce-0b4c1d347884}
13
#define PAGETHUMBSPROTOCOL_CID \
14
{ 0x5a4ae9b5, 0xf475, 0x48ae, { 0x9d, 0xce, 0x0b, 0x4c, 0x1d, 0x34, 0x78, 0x84 } }
15
16
class PageThumbsProtocol final : public nsIProtocolHandler
17
{
18
  public:
19
    NS_DECL_ISUPPORTS
20
    NS_DECL_NSIPROTOCOLHANDLER
21
22
  private:
23
0
    ~PageThumbsProtocol() {}
24
    nsresult GetFilePathForURL(nsIURI* aURI, nsIFile **_retval);
25
    nsresult ParseProtocolURL(nsIURI* aURI, nsString& aParsedURL);
26
};
27
28
#endif /* PageThumbsProtocol_h__ */