Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host.h

Issue 147233: Basic implentation of the client auth UI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then fowards the messages from the 7 // dispatches them to URLRequests. It then fowards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 18 matching lines...) Expand all
29 #include "webkit/glue/resource_type.h" 29 #include "webkit/glue/resource_type.h"
30 30
31 class CrossSiteResourceHandler; 31 class CrossSiteResourceHandler;
32 class DownloadFileManager; 32 class DownloadFileManager;
33 class DownloadRequestManager; 33 class DownloadRequestManager;
34 class LoginHandler; 34 class LoginHandler;
35 class MessageLoop; 35 class MessageLoop;
36 class PluginService; 36 class PluginService;
37 class SafeBrowsingService; 37 class SafeBrowsingService;
38 class SaveFileManager; 38 class SaveFileManager;
39 class SSLClientAuthHandler;
39 class URLRequestContext; 40 class URLRequestContext;
40 struct ViewHostMsg_Resource_Request; 41 struct ViewHostMsg_Resource_Request;
41 42
42 class ResourceDispatcherHost : public URLRequest::Delegate { 43 class ResourceDispatcherHost : public URLRequest::Delegate {
43 public: 44 public:
44 // Implemented by the client of ResourceDispatcherHost to receive messages in 45 // Implemented by the client of ResourceDispatcherHost to receive messages in
45 // response to a resource load. The messages are intended to be forwarded to 46 // response to a resource load. The messages are intended to be forwarded to
46 // the ResourceDispatcher in the child process via an IPC channel that the 47 // the ResourceDispatcher in the child process via an IPC channel that the
47 // client manages. 48 // client manages.
48 // 49 //
(...skipping 28 matching lines...) Expand all
77 int process_id, 78 int process_id,
78 int route_id, 79 int route_id,
79 int request_id, 80 int request_id,
80 std::string frame_origin, 81 std::string frame_origin,
81 std::string main_frame_origin, 82 std::string main_frame_origin,
82 ResourceType::Type resource_type, 83 ResourceType::Type resource_type,
83 uint64 upload_size) 84 uint64 upload_size)
84 : resource_handler(handler), 85 : resource_handler(handler),
85 cross_site_handler(NULL), 86 cross_site_handler(NULL),
86 login_handler(NULL), 87 login_handler(NULL),
88 ssl_client_auth_handler(NULL),
87 process_type(process_type), 89 process_type(process_type),
88 process_id(process_id), 90 process_id(process_id),
89 route_id(route_id), 91 route_id(route_id),
90 request_id(request_id), 92 request_id(request_id),
91 pending_data_count(0), 93 pending_data_count(0),
92 is_download(false), 94 is_download(false),
93 pause_count(0), 95 pause_count(0),
94 frame_origin(frame_origin), 96 frame_origin(frame_origin),
95 main_frame_origin(main_frame_origin), 97 main_frame_origin(main_frame_origin),
96 resource_type(resource_type), 98 resource_type(resource_type),
(...skipping 11 matching lines...) Expand all
108 // Top-level ResourceHandler servicing this request. 110 // Top-level ResourceHandler servicing this request.
109 scoped_refptr<ResourceHandler> resource_handler; 111 scoped_refptr<ResourceHandler> resource_handler;
110 112
111 // CrossSiteResourceHandler for this request, if it is a cross-site request. 113 // CrossSiteResourceHandler for this request, if it is a cross-site request.
112 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers 114 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers
113 // pointed to by resource_handler. 115 // pointed to by resource_handler.
114 CrossSiteResourceHandler* cross_site_handler; 116 CrossSiteResourceHandler* cross_site_handler;
115 117
116 LoginHandler* login_handler; 118 LoginHandler* login_handler;
117 119
120 SSLClientAuthHandler* ssl_client_auth_handler;
121
118 ChildProcessInfo::ProcessType process_type; 122 ChildProcessInfo::ProcessType process_type;
119 123
120 int process_id; 124 int process_id;
121 125
122 int route_id; 126 int route_id;
123 127
124 int request_id; 128 int request_id;
125 129
126 int pending_data_count; 130 int pending_data_count;
127 131
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // Used during IPC message dispatching so that the handlers can get a pointer 569 // Used during IPC message dispatching so that the handlers can get a pointer
566 // to the source of the message. 570 // to the source of the message.
567 Receiver* receiver_; 571 Receiver* receiver_;
568 572
569 static bool g_is_http_prioritization_enabled; 573 static bool g_is_http_prioritization_enabled;
570 574
571 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 575 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
572 }; 576 };
573 577
574 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 578 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698