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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 9406001: Factor out ResourceDispatcherHost dependent code around SSLManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/resource_dispatcher_host.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host.h b/content/browser/renderer_host/resource_dispatcher_host.h
index 80c9337e56944db5f1f14957f981e2176ea32b32..15dbc0cf29754146470edb13bef2016aea68f72b 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -25,6 +25,7 @@
#include "base/timer.h"
#include "content/browser/download/download_resource_handler.h"
#include "content/browser/renderer_host/resource_queue.h"
+#include "content/browser/ssl/ssl_error_handler.h"
#include "content/common/content_export.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/notification_types.h"
@@ -57,7 +58,9 @@ namespace webkit_blob {
class DeletableFileReference;
}
-class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
+class CONTENT_EXPORT ResourceDispatcherHost
+ : public net::URLRequest::Delegate,
+ public SSLErrorHandler::Delegate {
public:
ResourceDispatcherHost();
virtual ~ResourceDispatcherHost();
@@ -219,6 +222,10 @@ class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
net::URLRequest* GetURLRequest(
const content::GlobalRequestID& request_id) const;
+ // Retrieves a net::URLRequest. Must be called from the IO thread.
+ net::URLRequest* GetURLRequest(
+ const SSLErrorHandler::instance_id& id) const;
wtc 2012/02/22 00:36:23 It seems that this new method can be private. Thi
Takashi Toyoshima 2012/02/22 08:15:35 I can remove this function now, because I decide t
+
void RemovePendingRequest(int child_id, int request_id);
// Causes all new requests for the route identified by
@@ -284,6 +291,24 @@ class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
const DownloadSaveInfo& save_info,
const DownloadResourceHandler::OnStartedCallback& started_cb);
+ // SSLErrorHandler::Delegate
+ virtual ResourceType::Type ResourceTypeForInstance(
+ const SSLErrorHandler::instance_id& id) OVERRIDE;
+
+ virtual const GURL& URLForInstance(
+ const SSLErrorHandler::instance_id& id) OVERRIDE;
+
+ virtual bool RenderViewForInstance(const SSLErrorHandler::instance_id& id,
+ int* render_process_host_id,
+ int* render_view_host_id) OVERRIDE;
+
+ virtual void CancelRequestForInstance(const SSLErrorHandler::instance_id& id,
+ int error,
+ const net::SSLInfo* ssl_info) OVERRIDE;
+
+ virtual void ContinueRequestForInstance(
+ const SSLErrorHandler::instance_id& id) OVERRIDE;
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
TestBlockedRequestsProcessDies);

Powered by Google App Engine
This is Rietveld 408576698