blob: 0e47bb9c28bc1e88a4ed6ee6dbb65cf642d77027 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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 <string>
#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);
int pid() const { return pid_; }
protected:
virtual void OnDispatchFailed();
virtual void OnDispatched();
private:
int pid_;
DISALLOW_COPY_AND_ASSIGN(SSLMixedContentHandler);
};
#endif // CHROME_BROWSER_SSL_SSL_MIXED_CONTENT_HANDLER_H_
|