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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698