summaryrefslogtreecommitdiff
path: root/chromium/net/docs/url_request.dot
blob: 6a72bdae37063851d09ee90e03528ed0195bb9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
digraph URLRequestRoot {
    subgraph cluster_legend {
	label="Legend";

	## The following legend is an attempt to match UML notation,
	## except for template_class and Factory->object, which are
	## invented for this diagram.
	BaseClass;
	SubClass [label="Derived Class"];
	Whole;
	Part;
	A;
	B;
	Interface [label="Interface / ABC", style=dashed];
	template_class [shape=diamond]; # Link will name parameter(s)

	SubClass -> BaseClass [arrowhead="empty"];
	SubClass -> Interface [arrowhead="empty", style=dashed];
	Part -> Whole [arrowhead="diamond", label="ownership"];
	Part -> Whole [arrowhead="odiamond", label="pointer"];
	A -> B [arrowhead="none", headlabel="?..?", taillabel="?..?",
		label="association"];
	// Often a "subgraph { rank=same; .. }" is used to wrap the
	// below to make the generative relationship distinctive
	// from the other class relationships.
	Factory -> object [arrowhead=veevee];
    };

    ## URLRequest, URLRequestJob, and subclasses
    URLRequestContext;
    URLRequest;
    URLRequestJob [style=dashed];
    URLRequestJob_Others [label="...other job types..."];
    URLRequestHttpJob;
    Filter;

    {URLRequestHttpJob, URLRequestJob_Others} -> URLRequestJob
	[arrowhead="empty"];

    URLRequestJob -> URLRequest [arrowhead="diamond"];
    Filter -> URLRequestJob [arrowhead="diamond"];
    Filter -> Filter [arrowhead="diamond", taillabel="0..1"];

    subgraph {
	rank=same;
	URLRequestContext -> URLRequest [arrowhead=veevee];
    }
    subgraph {
	rank=same;
	URLRequestHttpJob -> Filter [arrowhead=veevee];
    }


    ## HttpTransaction, subclasses, and generative classes.
    HttpTransactionFactory [style=dashed];
    HttpCache;
    HttpNetworkLayer;
    HttpTransaction [style=dashed];
    HttpCache_Transaction [label="HttpCache::Transaction"];
    HttpNetworkTransaction;

    { HttpNetworkTransaction, HttpCache_Transaction } -> HttpTransaction
	[style=dashed, arrowhead="empty"];
    { HttpNetworkLayer, HttpCache } -> HttpTransactionFactory
	[arrowhead=empty, style=dashed];

    HttpTransaction -> HttpCache_Transaction  [arrowhead=diamond];
    HttpTransaction -> URLRequestHttpJob [arrowhead="diamond"]

    subgraph {
	rank=same;
	HttpCache -> HttpCache_Transaction [arrowhead=veevee];
    }
    subgraph {
	rank=same;
	HttpTransactionFactory -> HttpTransaction [arrowhead=veevee];
    }
    subgraph {
	rank=same;
	HttpNetworkLayer -> HttpNetworkTransaction [arrowhead=veevee];
    }

    ## HttpStreamFactory and related.
    HttpStreamFactory;
    HttpStreamRequest;
    HttpStream [style=dashed];
    HttpStreamFactory_Job [label="HttpStreamFactory::Job"];
    HttpStreamRequest_Delegate
	[label="HttpStreamRequest::Delegate",style=dashed];
    HttpBasicStream;
    QuicHttpStream;
    SpdyHttpStream;
    HttpBasicState;

    HttpNetworkTransaction -> HttpStreamRequest_Delegate
	[style=dashed, arrowhead="empty"];
    { HttpBasicStream, QuicHttpStream, SpdyHttpStream } -> HttpStream
	[style=dashed, arrowhead="empty"];

    HttpStreamRequest -> HttpNetworkTransaction [arrowhead="diamond"];
    HttpStream -> HttpNetworkTransaction [arrowhead="diamond"];
    HttpBasicState -> HttpBasicStream [arrowhead=diamond];
    HttpStreamFactory_Job -> HttpStreamRequest
	[arrowhead="diamond",taillabel="1..*"];

    HttpStreamRequest_Delegate -> HttpStreamRequest
        [arrowhead=odiamond];
    HttpStreamFactory_Job -> HttpStreamFactory_Job
        [arrowhead=odiamond, label="blocking_job_\nwaiting_job_"];

    subgraph {
	rank=same;
	HttpStreamFactory -> HttpStreamRequest [arrowhead=veevee];
    }
    subgraph {
	rank=same;
	HttpStreamRequest -> HttpStream [arrowhead=veevee];
    }

    ## ClientSocketHandle and socket pools.
    ClientSocketPool [style=dashed];
    TransportClientSocketPool;
    SSLClientSocketPool;
    ClientSocketPool_Others [label="...others..."];
    ClientSocketPoolBase [label="ClientSocketPoolBase", shape=diamond];
    ClientSocketPoolBaseHelper;

    ConnectJobFactory;
    ConnectJob [style=dashed];
    TransportConnectJob;
    SSLConnectJob;
    ConnectJob_Others [label="...other connect job types..."];
    ConnectJob_Delegate [label="ConnectJob::Delegate",style=dashed];

    StreamSocket [style=dashed];
    TCPClientSocket;
    StreamSocket_Others [label="...other socket types..."];

    TransportConnectJobHelper;
    SingleRequestHostResolver;

    { SSLClientSocketPool, TransportClientSocketPool,
      ClientSocketPool_Others} -> ClientSocketPool
	[style=dashed, arrowhead=empty];
    ClientSocketPoolBaseHelper -> ConnectJob_Delegate
	[arrowhead=empty, style=dashed];
    StreamSocket -> Socket [arrowhead=empty, style=dashed];
    { TCPClientSocket, StreamSocket_Others } -> StreamSocket
	[arrowhead=empty, style=dashed];
    {SSLConnectJob, TransportConnectJob, ConnectJob_Others} -> ConnectJob
	[style=dashed, arrowhead=empty];

    ClientSocketHandle -> HttpStreamFactory_Job [arrowhead="diamond"];
    ClientSocketHandle -> HttpBasicState [arrowhead="diamond"];
    ClientSocketPoolBaseHelper -> ClientSocketPoolBase [arrowhead=diamond];
    ClientSocketPoolBase -> TransportClientSocketPool
	[arrowhead=diamond, label=TransportSocketParams];
    ClientSocketPoolBase -> SSLClientSocketPool
	[arrowhead=diamond, label=SSLSocketParams];

    StreamSocket -> ClientSocketHandle [arrowhead=diamond];
    ConnectJobFactory -> ClientSocketPoolBase [arrowhead=diamond];
    StreamSocket -> ConnectJob [arrowhead=diamond];
    SingleRequestHostResolver -> TransportConnectJobHelper
	[arrowhead=diamond];
    TransportConnectJobHelper -> TransportConnectJob [arrowhead=diamond];

    ClientSocketPool -> ClientSocketHandle  [arrowhead=odiamond];
    ConnectJob_Delegate -> ConnectJob  [arrowhead=odiamond];

    subgraph {
	rank=same;
	ConnectJobFactory -> ConnectJob [arrowhead=veevee];
    }
    subgraph {
	rank=same;
	HttpStreamFactory_Job -> ClientSocketHandle [arrowhead=veevee];
    }
    subgraph {
        rank=same;
	TransportConnectJob -> StreamSocket [arrowhead=veevee];
    }
}