1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.internal.backends.chrome.extension_backend</title> 4 <meta charset="utf-8"> 5 </head><body bgcolor="#f0f0f8"> 6 7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8 <tr bgcolor="#7799ee"> 9 <td valign=bottom> <br> 10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.backends.html"><font color="#ffffff">backends</font></a>.<a href="telemetry.internal.backends.chrome.html"><font color="#ffffff">chrome</font></a>.extension_backend</strong></big></big></font></td 11 ><td align=right valign=bottom 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/backends/chrome/extension_backend.py">telemetry/internal/backends/chrome/extension_backend.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14 # Use of this source code is governed by a BSD-style license that can be<br> 15 # found in the LICENSE file.</tt></p> 16 <p> 17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18 <tr bgcolor="#aa55cc"> 19 <td colspan=3 valign=bottom> <br> 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="collections.html">collections</a><br> 24 </td><td width="25%" valign=top><a href="telemetry.internal.browser.extension_page.html">telemetry.internal.browser.extension_page</a><br> 25 </td><td width="25%" valign=top><a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html">telemetry.internal.backends.chrome_inspector.inspector_backend_list</a><br> 26 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 27 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 28 <tr bgcolor="#ee77aa"> 29 <td colspan=3 valign=bottom> <br> 30 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 31 32 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 33 <td width="100%"><dl> 34 <dt><font face="helvetica, arial"><a href="_abcoll.html#Mapping">_abcoll.Mapping</a>(<a href="_abcoll.html#Sized">_abcoll.Sized</a>, <a href="_abcoll.html#Iterable">_abcoll.Iterable</a>, <a href="_abcoll.html#Container">_abcoll.Container</a>) 35 </font></dt><dd> 36 <dl> 37 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.extension_backend.html#ExtensionBackendDict">ExtensionBackendDict</a> 38 </font></dt></dl> 39 </dd> 40 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>(<a href="_abcoll.html#Sequence">_abcoll.Sequence</a>) 41 </font></dt><dd> 42 <dl> 43 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.extension_backend.html#ExtensionBackendList">ExtensionBackendList</a> 44 </font></dt></dl> 45 </dd> 46 </dl> 47 <p> 48 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 49 <tr bgcolor="#ffc8d8"> 50 <td colspan=3 valign=bottom> <br> 51 <font color="#000000" face="helvetica, arial"><a name="ExtensionBackendDict">class <strong>ExtensionBackendDict</strong></a>(<a href="_abcoll.html#Mapping">_abcoll.Mapping</a>)</font></td></tr> 52 53 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 54 <td colspan=2><tt>A dynamic mapping of extension_id to extension_page.ExtensionPages.<br> </tt></td></tr> 55 <tr><td> </td> 56 <td width="100%"><dl><dt>Method resolution order:</dt> 57 <dd><a href="telemetry.internal.backends.chrome.extension_backend.html#ExtensionBackendDict">ExtensionBackendDict</a></dd> 58 <dd><a href="_abcoll.html#Mapping">_abcoll.Mapping</a></dd> 59 <dd><a href="_abcoll.html#Sized">_abcoll.Sized</a></dd> 60 <dd><a href="_abcoll.html#Iterable">_abcoll.Iterable</a></dd> 61 <dd><a href="_abcoll.html#Container">_abcoll.Container</a></dd> 62 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 63 </dl> 64 <hr> 65 Methods defined here:<br> 66 <dl><dt><a name="ExtensionBackendDict-ContextIdToExtensionId"><strong>ContextIdToExtensionId</strong></a>(self, context_id)</dt></dl> 67 68 <dl><dt><a name="ExtensionBackendDict-__getitem__"><strong>__getitem__</strong></a>(self, extension_id)</dt></dl> 69 70 <dl><dt><a name="ExtensionBackendDict-__init__"><strong>__init__</strong></a>(self, browser_backend)</dt></dl> 71 72 <dl><dt><a name="ExtensionBackendDict-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> 73 74 <dl><dt><a name="ExtensionBackendDict-__len__"><strong>__len__</strong></a>(self)</dt></dl> 75 76 <hr> 77 Data and other attributes defined here:<br> 78 <dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> 79 80 <hr> 81 Methods inherited from <a href="_abcoll.html#Mapping">_abcoll.Mapping</a>:<br> 82 <dl><dt><a name="ExtensionBackendDict-__contains__"><strong>__contains__</strong></a>(self, key)</dt></dl> 83 84 <dl><dt><a name="ExtensionBackendDict-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl> 85 86 <dl><dt><a name="ExtensionBackendDict-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl> 87 88 <dl><dt><a name="ExtensionBackendDict-get"><strong>get</strong></a>(self, key, default<font color="#909090">=None</font>)</dt><dd><tt>D.<a href="#ExtensionBackendDict-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl> 89 90 <dl><dt><a name="ExtensionBackendDict-items"><strong>items</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-items">items</a>() -> list of D's (key, value) pairs, as 2-tuples</tt></dd></dl> 91 92 <dl><dt><a name="ExtensionBackendDict-iteritems"><strong>iteritems</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-iteritems">iteritems</a>() -> an iterator over the (key, value) items of D</tt></dd></dl> 93 94 <dl><dt><a name="ExtensionBackendDict-iterkeys"><strong>iterkeys</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-iterkeys">iterkeys</a>() -> an iterator over the keys of D</tt></dd></dl> 95 96 <dl><dt><a name="ExtensionBackendDict-itervalues"><strong>itervalues</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-itervalues">itervalues</a>() -> an iterator over the values of D</tt></dd></dl> 97 98 <dl><dt><a name="ExtensionBackendDict-keys"><strong>keys</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-keys">keys</a>() -> list of D's keys</tt></dd></dl> 99 100 <dl><dt><a name="ExtensionBackendDict-values"><strong>values</strong></a>(self)</dt><dd><tt>D.<a href="#ExtensionBackendDict-values">values</a>() -> list of D's values</tt></dd></dl> 101 102 <hr> 103 Data and other attributes inherited from <a href="_abcoll.html#Mapping">_abcoll.Mapping</a>:<br> 104 <dl><dt><strong>__hash__</strong> = None</dl> 105 106 <hr> 107 Class methods inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 108 <dl><dt><a name="ExtensionBackendDict-__subclasshook__"><strong>__subclasshook__</strong></a>(cls, C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">abc.ABCMeta</a></font></font></dt></dl> 109 110 <hr> 111 Data descriptors inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 112 <dl><dt><strong>__dict__</strong></dt> 113 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 114 </dl> 115 <dl><dt><strong>__weakref__</strong></dt> 116 <dd><tt>list of weak references to the object (if defined)</tt></dd> 117 </dl> 118 <hr> 119 Data and other attributes inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 120 <dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 121 <br> 122 Use this metaclass to create an ABC. An ABC can be subclassed<br> 123 directly, and then acts as a mix-in class. You can also register<br> 124 unrelated concrete classes (even built-in classes) and unrelated<br> 125 ABCs as 'virtual subclasses' -- these and their descendants will<br> 126 be considered subclasses of the registering ABC by the built-in<br> 127 issubclass() function, but the registering ABC won't show up in<br> 128 their MRO (Method Resolution Order) nor will method<br> 129 implementations defined by the registering ABC be callable (not<br> 130 even via super()).</tt></dl> 131 132 </td></tr></table> <p> 133 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 134 <tr bgcolor="#ffc8d8"> 135 <td colspan=3 valign=bottom> <br> 136 <font color="#000000" face="helvetica, arial"><a name="ExtensionBackendList">class <strong>ExtensionBackendList</strong></a>(<a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>)</font></td></tr> 137 138 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 139 <td colspan=2><tt>A dynamic sequence of extension_page.ExtensionPages.<br> </tt></td></tr> 140 <tr><td> </td> 141 <td width="100%"><dl><dt>Method resolution order:</dt> 142 <dd><a href="telemetry.internal.backends.chrome.extension_backend.html#ExtensionBackendList">ExtensionBackendList</a></dd> 143 <dd><a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a></dd> 144 <dd><a href="_abcoll.html#Sequence">_abcoll.Sequence</a></dd> 145 <dd><a href="_abcoll.html#Sized">_abcoll.Sized</a></dd> 146 <dd><a href="_abcoll.html#Iterable">_abcoll.Iterable</a></dd> 147 <dd><a href="_abcoll.html#Container">_abcoll.Container</a></dd> 148 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 149 </dl> 150 <hr> 151 Methods defined here:<br> 152 <dl><dt><a name="ExtensionBackendList-CreateWrapper"><strong>CreateWrapper</strong></a>(self, inspector_backend)</dt></dl> 153 154 <dl><dt><a name="ExtensionBackendList-ShouldIncludeContext"><strong>ShouldIncludeContext</strong></a>(self, context)</dt></dl> 155 156 <dl><dt><a name="ExtensionBackendList-__init__"><strong>__init__</strong></a>(self, browser_backend)</dt></dl> 157 158 <hr> 159 Data and other attributes defined here:<br> 160 <dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> 161 162 <hr> 163 Methods inherited from <a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>:<br> 164 <dl><dt><a name="ExtensionBackendList-GetBackendFromContextId"><strong>GetBackendFromContextId</strong></a>(self, context_id)</dt></dl> 165 166 <dl><dt><a name="ExtensionBackendList-GetContextInfo"><strong>GetContextInfo</strong></a>(self, context_id)</dt></dl> 167 168 <dl><dt><a name="ExtensionBackendList-GetTabById"><strong>GetTabById</strong></a>(self, identifier)</dt></dl> 169 170 <dl><dt><a name="ExtensionBackendList-IterContextIds"><strong>IterContextIds</strong></a>(self)</dt></dl> 171 172 <dl><dt><a name="ExtensionBackendList-__getitem__"><strong>__getitem__</strong></a>(self, index)</dt><dd><tt># TODO(nednguyen): Remove this method and turn inspector_backend_list API to<br> 173 # dictionary-like API (crbug.com/398467)</tt></dd></dl> 174 175 <dl><dt><a name="ExtensionBackendList-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> 176 177 <dl><dt><a name="ExtensionBackendList-__len__"><strong>__len__</strong></a>(self)</dt></dl> 178 179 <hr> 180 Data descriptors inherited from <a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>:<br> 181 <dl><dt><strong>app</strong></dt> 182 </dl> 183 <hr> 184 Methods inherited from <a href="_abcoll.html#Sequence">_abcoll.Sequence</a>:<br> 185 <dl><dt><a name="ExtensionBackendList-__contains__"><strong>__contains__</strong></a>(self, value)</dt></dl> 186 187 <dl><dt><a name="ExtensionBackendList-__reversed__"><strong>__reversed__</strong></a>(self)</dt></dl> 188 189 <dl><dt><a name="ExtensionBackendList-count"><strong>count</strong></a>(self, value)</dt><dd><tt>S.<a href="#ExtensionBackendList-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl> 190 191 <dl><dt><a name="ExtensionBackendList-index"><strong>index</strong></a>(self, value)</dt><dd><tt>S.<a href="#ExtensionBackendList-index">index</a>(value) -> integer -- return first index of value.<br> 192 Raises ValueError if the value is not present.</tt></dd></dl> 193 194 <hr> 195 Class methods inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 196 <dl><dt><a name="ExtensionBackendList-__subclasshook__"><strong>__subclasshook__</strong></a>(cls, C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">abc.ABCMeta</a></font></font></dt></dl> 197 198 <hr> 199 Data descriptors inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 200 <dl><dt><strong>__dict__</strong></dt> 201 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 202 </dl> 203 <dl><dt><strong>__weakref__</strong></dt> 204 <dd><tt>list of weak references to the object (if defined)</tt></dd> 205 </dl> 206 <hr> 207 Data and other attributes inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 208 <dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 209 <br> 210 Use this metaclass to create an ABC. An ABC can be subclassed<br> 211 directly, and then acts as a mix-in class. You can also register<br> 212 unrelated concrete classes (even built-in classes) and unrelated<br> 213 ABCs as 'virtual subclasses' -- these and their descendants will<br> 214 be considered subclasses of the registering ABC by the built-in<br> 215 issubclass() function, but the registering ABC won't show up in<br> 216 their MRO (Method Resolution Order) nor will method<br> 217 implementations defined by the registering ABC be callable (not<br> 218 even via super()).</tt></dl> 219 220 </td></tr></table></td></tr></table> 221 </body></html>