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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_ssl_helper.h

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/linked_ptr.h" 11 #include "base/linked_ptr.h"
12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
13 13
14 class SSLAddCertHandler;
14 class SSLClientAuthHandler; 15 class SSLClientAuthHandler;
15 class TabContents; 16 class TabContents;
16 17
17 class TabContentsSSLHelper : public RenderViewHostDelegate::SSL { 18 class TabContentsSSLHelper : public RenderViewHostDelegate::SSL {
18 public: 19 public:
19 explicit TabContentsSSLHelper(TabContents* tab_contents); 20 explicit TabContentsSSLHelper(TabContents* tab_contents);
20 virtual ~TabContentsSSLHelper(); 21 virtual ~TabContentsSSLHelper();
21 22
22 // RenderViewHostDelegate::SSL implementation: 23 // RenderViewHostDelegate::SSL implementation:
23 virtual void ShowClientCertificateRequestDialog( 24 virtual void ShowClientCertificateRequestDialog(
24 scoped_refptr<SSLClientAuthHandler> handler); 25 scoped_refptr<SSLClientAuthHandler> handler);
25 virtual void OnVerifyClientCertificateError( 26 virtual void OnVerifyClientCertificateError(
26 scoped_refptr<SSLAddCertHandler> handler, int error_code); 27 scoped_refptr<SSLAddCertHandler> handler, int error_code);
27 virtual void AskToAddClientCertificate( 28 virtual void AskToAddClientCertificate(
28 scoped_refptr<SSLAddCertHandler> handler); 29 scoped_refptr<SSLAddCertHandler> handler);
29 virtual void OnAddClientCertificateSuccess( 30 virtual void OnAddClientCertificateSuccess(
30 scoped_refptr<SSLAddCertHandler> handler); 31 scoped_refptr<SSLAddCertHandler> handler);
31 virtual void OnAddClientCertificateError( 32 virtual void OnAddClientCertificateError(
32 scoped_refptr<SSLAddCertHandler> handler, int error_code); 33 scoped_refptr<SSLAddCertHandler> handler, int error_code);
33 virtual void OnAddClientCertificateFinished( 34 virtual void OnAddClientCertificateFinished(
34 scoped_refptr<SSLAddCertHandler> handler); 35 scoped_refptr<SSLAddCertHandler> handler);
35 36
36 private: 37 private:
37 TabContents* tab_contents_; 38 TabContents* tab_contents_;
38 39
39 class SSLAddCertData; 40 class SSLAddCertData;
40 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_; 41 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_;
41 42
42 SSLAddCertData* GetAddCertData(SSLAddCertHandler *handler); 43 SSLAddCertData* GetAddCertData(SSLAddCertHandler* handler);
43 44
44 DISALLOW_COPY_AND_ASSIGN(TabContentsSSLHelper); 45 DISALLOW_COPY_AND_ASSIGN(TabContentsSSLHelper);
45 }; 46 };
46 47
47 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ 48 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_ssl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698