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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 10381051: Show the "cannot proceed" text only when appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 // Create and return a new quota permission context. 252 // Create and return a new quota permission context.
253 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; 253 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0;
254 254
255 // Open the given file in the desktop's default manner. 255 // Open the given file in the desktop's default manner.
256 virtual void OpenItem(const FilePath& path) = 0; 256 virtual void OpenItem(const FilePath& path) = 0;
257 257
258 // Show the given file in a file manager. If possible, select the file. 258 // Show the given file in a file manager. If possible, select the file.
259 virtual void ShowItemInFolder(const FilePath& path) = 0; 259 virtual void ShowItemInFolder(const FilePath& path) = 0;
260 260
261 // Informs the embedder that a certificate error has occured. If overridable 261 // Informs the embedder that a certificate error has occured. If
262 // is true, the user can ignore the error and continue. If it's false, then 262 // |overridable| is true and if |strict_enforcement| is false, the user
263 // the certificate error is severe and the user isn't allowed to proceed. The 263 // can ignore the error and continue. The embedder can call the callback
264 // embedder can call the callback asynchronously. If |cancel_request| is set 264 // asynchronously. If |cancel_request| is set to true, the request will be
265 // to true, the request will be cancelled immediately and the callback won't 265 // cancelled immediately and the callback won't be run.
266 // be run.
267 virtual void AllowCertificateError( 266 virtual void AllowCertificateError(
268 int render_process_id, 267 int render_process_id,
269 int render_view_id, 268 int render_view_id,
270 int cert_error, 269 int cert_error,
271 const net::SSLInfo& ssl_info, 270 const net::SSLInfo& ssl_info,
272 const GURL& request_url, 271 const GURL& request_url,
273 bool overridable, 272 bool overridable,
273 bool strict_enforcement,
274 const base::Callback<void(bool)>& callback, 274 const base::Callback<void(bool)>& callback,
275 bool* cancel_request) = 0; 275 bool* cancel_request) = 0;
276 276
277 // Selects a SSL client certificate and returns it to the |callback|. If no 277 // Selects a SSL client certificate and returns it to the |callback|. If no
278 // certificate was selected NULL is returned to the |callback|. 278 // certificate was selected NULL is returned to the |callback|.
279 virtual void SelectClientCertificate( 279 virtual void SelectClientCertificate(
280 int render_process_id, 280 int render_process_id,
281 int render_view_id, 281 int render_view_id,
282 const net::HttpNetworkSession* network_session, 282 const net::HttpNetworkSession* network_session,
283 net::SSLCertRequestInfo* cert_request_info, 283 net::SSLCertRequestInfo* cert_request_info,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // This is called on a worker thread. 425 // This is called on a worker thread.
426 virtual 426 virtual
427 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 427 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
428 const GURL& url) = 0; 428 const GURL& url) = 0;
429 #endif 429 #endif
430 }; 430 };
431 431
432 } // namespace content 432 } // namespace content
433 433
434 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 434 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« chrome/browser/ssl/ssl_blocking_page.cc ('K') | « content/browser/ssl/ssl_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698