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

Side by Side Diff: content/browser/mock_content_browser_client.h

Issue 7537025: Add new Content settings type AUTO-SUBMIT-CERTIFICATE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 4 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) 2011 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 CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "content/browser/content_browser_client.h" 12 #include "content/browser/content_browser_client.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 // Base for unit tests that need to mock the ContentBrowserClient. 16 // Base for unit tests that need to mock the ContentBrowserClient.
15 class MockContentBrowserClient : public ContentBrowserClient { 17 class MockContentBrowserClient : public ContentBrowserClient {
16 public: 18 public:
17 virtual ~MockContentBrowserClient(); 19 virtual ~MockContentBrowserClient();
18 20
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual bool AllowSaveLocalState( 53 virtual bool AllowSaveLocalState(
52 const content::ResourceContext& context) OVERRIDE; 54 const content::ResourceContext& context) OVERRIDE;
53 virtual net::URLRequestContext* OverrideRequestContextForURL( 55 virtual net::URLRequestContext* OverrideRequestContextForURL(
54 const GURL& url, const content::ResourceContext& context) OVERRIDE; 56 const GURL& url, const content::ResourceContext& context) OVERRIDE;
55 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; 57 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
56 virtual void RevealFolderInOS(const FilePath& path) OVERRIDE; 58 virtual void RevealFolderInOS(const FilePath& path) OVERRIDE;
57 virtual void AllowCertificateError( 59 virtual void AllowCertificateError(
58 SSLCertErrorHandler* handler, 60 SSLCertErrorHandler* handler,
59 bool overridable, 61 bool overridable,
60 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE; 62 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE;
61 virtual void ShowClientCertificateRequestDialog( 63 virtual void SelectClientCertificate(
62 int render_process_id, 64 int render_process_id,
63 int render_view_id, 65 int render_view_id,
64 SSLClientAuthHandler* handler) OVERRIDE; 66 SSLClientAuthHandler* handler) OVERRIDE;
65 virtual void AddNewCertificate( 67 virtual void AddNewCertificate(
66 net::URLRequest* request, 68 net::URLRequest* request,
67 net::X509Certificate* cert, 69 net::X509Certificate* cert,
68 int render_process_id, 70 int render_process_id,
69 int render_view_id) OVERRIDE; 71 int render_view_id) OVERRIDE;
70 virtual void RequestDesktopNotificationPermission( 72 virtual void RequestDesktopNotificationPermission(
71 const GURL& source_origin, 73 const GURL& source_origin,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #if defined(USE_NSS) 117 #if defined(USE_NSS)
116 virtual 118 virtual
117 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 119 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
118 const GURL& url) OVERRIDE; 120 const GURL& url) OVERRIDE;
119 #endif 121 #endif
120 }; 122 };
121 123
122 } // namespace content 124 } // namespace content
123 125
124 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 126 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698