~ubuntu-branches/ubuntu/wily/epiphany-browser/wily

« back to all changes in this revision

Viewing changes to embed/uri-tester.h

Tags: upstream-3.10.1
ImportĀ upstreamĀ versionĀ 3.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef URI_TESTER_H
20
20
#define URI_TESTER_H
21
21
 
22
 
#include "ephy-adblock.h"
23
 
 
24
22
#include <glib-object.h>
25
23
#include <glib.h>
26
24
 
33
31
#define IS_URI_TESTER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_URI_TESTER))
34
32
#define URI_TESTER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_URI_TESTER, UriTesterClass))
35
33
 
 
34
typedef enum
 
35
{
 
36
  AD_URI_CHECK_TYPE_OTHER       = 1U,
 
37
  AD_URI_CHECK_TYPE_SCRIPT      = 2U, /* Indicates an executable script
 
38
                                         (such as JavaScript) */
 
39
  AD_URI_CHECK_TYPE_IMAGE       = 3U, /* Indicates an image (e.g., IMG
 
40
                                         elements) */
 
41
  AD_URI_CHECK_TYPE_STYLESHEET  = 4U, /* Indicates a stylesheet (e.g.,
 
42
                                         STYLE elements) */
 
43
  AD_URI_CHECK_TYPE_OBJECT      = 5U, /* Indicates a generic object
 
44
                                         (plugin-handled content
 
45
                                         typically falls under this
 
46
                                         category) */
 
47
  AD_URI_CHECK_TYPE_DOCUMENT    = 6U, /* Indicates a document at the
 
48
                                         top-level (i.e., in a
 
49
                                         browser) */
 
50
  AD_URI_CHECK_TYPE_SUBDOCUMENT = 7U, /* Indicates a document contained
 
51
                                         within another document (e.g.,
 
52
                                         IFRAMEs, FRAMES, and OBJECTs) */
 
53
  AD_URI_CHECK_TYPE_REFRESH     = 8U, /* Indicates a timed refresh */
 
54
  AD_URI_CHECK_TYPE_XBEL              =  9U, /* Indicates an XBL binding request,
 
55
                                                triggered either by -moz-binding CSS
 
56
                                                property or Document.addBinding method */
 
57
  AD_URI_CHECK_TYPE_PING              = 10U, /* Indicates a ping triggered by a click on
 
58
                                                <A PING="..."> element */
 
59
  AD_URI_CHECK_TYPE_XMLHTTPREQUEST    = 11U, /* Indicates a XMLHttpRequest */
 
60
  AD_URI_CHECK_TYPE_OBJECT_SUBREQUEST = 12U  /* Indicates a request by a plugin */
 
61
} AdUriCheckType;
 
62
 
36
63
typedef struct _UriTester        UriTester;
37
64
typedef struct _UriTesterClass   UriTesterClass;
38
65
typedef struct _UriTesterPrivate UriTesterPrivate;