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

Unified Diff: chrome/browser/ssl/ssl_mixed_content_handler.h

Issue 113391: Refactor the inner classes from SSLManager to their own files to reduce the c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 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: chrome/browser/ssl/ssl_mixed_content_handler.h
===================================================================
--- chrome/browser/ssl/ssl_mixed_content_handler.h (revision 0)
+++ chrome/browser/ssl/ssl_mixed_content_handler.h (revision 0)
@@ -0,0 +1,38 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLER_H_
+#define CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLER_H_
+
+#include "chrome/browser/ssl/ssl_error_handler.h"
+
+// The SSLMixedContentHandler class is used to query what to do with
+// mixed content, from the IO thread to the UI thread.
+class SSLMixedContentHandler : public SSLErrorHandler {
+ public:
+ // Created on the IO thread.
+ SSLMixedContentHandler(ResourceDispatcherHost* rdh,
+ URLRequest* request,
+ ResourceType::Type resource_type,
+ const std::string& frame_origin,
+ const std::string& main_frame_origin,
+ int pid,
+ MessageLoop* ui_loop)
+ : SSLErrorHandler(rdh, request, resource_type, frame_origin,
+ main_frame_origin, ui_loop),
+ pid_(pid) {}
+
+ int pid() const { return pid_; }
+
+ protected:
+ virtual void OnDispatchFailed() { TakeNoAction(); }
+ virtual void OnDispatched() { manager()->OnMixedContent(this); }
+
+ private:
+ int pid_;
+
+ DISALLOW_COPY_AND_ASSIGN(SSLMixedContentHandler);
+};
+
+#endif // CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLERR_H_
jcampan 2009/05/14 17:02:40 Typo in comment _HANDLERR_H_ -> HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698