Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLER_H_ | |
| 7 | |
| 8 #include "chrome/browser/ssl/ssl_error_handler.h" | |
| 9 | |
| 10 // The SSLMixedContentHandler class is used to query what to do with | |
| 11 // mixed content, from the IO thread to the UI thread. | |
| 12 class SSLMixedContentHandler : public SSLErrorHandler { | |
| 13 public: | |
| 14 // Created on the IO thread. | |
| 15 SSLMixedContentHandler(ResourceDispatcherHost* rdh, | |
| 16 URLRequest* request, | |
| 17 ResourceType::Type resource_type, | |
| 18 const std::string& frame_origin, | |
| 19 const std::string& main_frame_origin, | |
| 20 int pid, | |
| 21 MessageLoop* ui_loop) | |
| 22 : SSLErrorHandler(rdh, request, resource_type, frame_origin, | |
| 23 main_frame_origin, ui_loop), | |
| 24 pid_(pid) {} | |
| 25 | |
| 26 int pid() const { return pid_; } | |
| 27 | |
| 28 protected: | |
| 29 virtual void OnDispatchFailed() { TakeNoAction(); } | |
| 30 virtual void OnDispatched() { manager()->OnMixedContent(this); } | |
| 31 | |
| 32 private: | |
| 33 int pid_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(SSLMixedContentHandler); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLERR_H_ | |
|
jcampan
2009/05/14 17:02:40
Typo in comment _HANDLERR_H_ -> HANDLER_H_
| |
| OLD | NEW |