2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.user_agent
</title>
4 </head><body bgcolor=
"#f0f0f8">
6 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
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>.user_agent
</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/user_agent.py">telemetry/core/user_agent.py
</a></font></td></tr></table>
12 <p><tt>#
Copyright
(c)
2012 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>
16 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
17 <tr bgcolor=
"#eeaa77">
18 <td colspan=
3 valign=bottom
> <br>
19 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Functions
</strong></big></font></td></tr>
21 <tr><td bgcolor=
"#eeaa77"><tt> </tt></td><td> </td>
22 <td width=
"100%"><dl><dt><a name=
"-GetChromeUserAgentArgumentFromType"><strong>GetChromeUserAgentArgumentFromType
</strong></a>(user_agent_type)
</dt><dd><tt>Returns
a
chrome
user
agent
based
on
a
user
agent
type.
<br>
23 This
is
derived
from:
<br>
24 https://developers.google.com/chrome/mobile/docs/user-agent
</tt></dd></dl>
26 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
27 <tr bgcolor=
"#55aa55">
28 <td colspan=
3 valign=bottom
> <br>
29 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Data
</strong></big></font></td></tr>
31 <tr><td bgcolor=
"#55aa55"><tt> </tt></td><td> </td>
32 <td width=
"100%"><strong>UA_TYPE_MAPPING
</strong> = {'desktop': 'Mozilla/
5.0 (Macintosh; Intel Mac OS X
10_7_3) A...L, like Gecko) Chrome/
27.0.1453.111 Safari/
537.22', 'mobile': 'Mozilla/
5.0 (Linux; Android
4.0.4; Galaxy Nexus ... Gecko) Chrome/
27.0.1453.111 Mobile Safari/
535.19', 'tablet': 'Mozilla/
5.0 (Linux; Android
4.0.4; Galaxy Nexus ...L, like Gecko) Chrome/
27.0.1453.111 Safari/
535.19'}
</td></tr></table>