1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.core.profile_types</title> 4 </head><body bgcolor="#f0f0f8"> 5 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 7 <tr bgcolor="#7799ee"> 8 <td valign=bottom> <br> 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.core.html"><font color="#ffffff">core</font></a>.profile_types</strong></big></big></font></td 10 ><td align=right valign=bottom 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/core/profile_types.py">telemetry/core/profile_types.py</a></font></td></tr></table> 12 <p><tt># Copyright (c) 2013 The Chromium Authors. All rights reserved.<br> 13 # Use of this source code is governed by a BSD-style license that can be<br> 14 # found in the LICENSE file.</tt></p> 15 <p> 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 17 <tr bgcolor="#aa55cc"> 18 <td colspan=3 valign=bottom> <br> 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 20 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.core.discover.html">telemetry.core.discover</a><br> 23 </td><td width="25%" valign=top><a href="os.html">os</a><br> 24 </td><td width="25%" valign=top><a href="telemetry.core.profile_creator.html">telemetry.core.profile_creator</a><br> 25 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 26 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 27 <tr bgcolor="#eeaa77"> 28 <td colspan=3 valign=bottom> <br> 29 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 30 31 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 32 <td width="100%"><dl><dt><a name="-ClearProfieCreatorsForTests"><strong>ClearProfieCreatorsForTests</strong></a>()</dt><dd><tt>Clears the discovered profile creator objects. Used for unit tests.</tt></dd></dl> 33 <dl><dt><a name="-FindProfileCreators"><strong>FindProfileCreators</strong></a>(profile_creators_dir, base_dir)</dt><dd><tt>Discover all the ProfileCreator objects in |profile_creators_dir|.</tt></dd></dl> 34 <dl><dt><a name="-GetProfileCreator"><strong>GetProfileCreator</strong></a>(profile_type)</dt><dd><tt>Returns the profile creator object corresponding to the |profile_type|<br> 35 string.</tt></dd></dl> 36 <dl><dt><a name="-GetProfileDir"><strong>GetProfileDir</strong></a>(profile_type)</dt><dd><tt>Given a |profile_type| (as returned by <a href="#-GetProfileTypes">GetProfileTypes</a>()), return the<br> 37 directory to use for that profile or None if the profile needs to be generated<br> 38 or doesn't need a profile directory (e.g. using the browser default profile).</tt></dd></dl> 39 <dl><dt><a name="-GetProfileTypes"><strong>GetProfileTypes</strong></a>()</dt><dd><tt>Returns a list of all command line options that can be specified for<br> 40 profile type.</tt></dd></dl> 41 </td></tr></table><p> 42 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 43 <tr bgcolor="#55aa55"> 44 <td colspan=3 valign=bottom> <br> 45 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 46 47 <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 48 <td width="100%"><strong>BASE_PROFILE_TYPES</strong> = ['clean', 'default']<br> 49 <strong>PROFILE_CREATORS</strong> = {}<br> 50 <strong>PROFILE_TYPE_MAPPING</strong> = {'power_user': 'chrome/test/data/extensions/profiles/extension_webrequest', 'typical_user': 'chrome/test/data/extensions/profiles/content_scripts1'}</td></tr></table> 51 </body></html>