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

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

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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
« no previous file with comments | « content/content_child.gypi ('k') | content/public/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 // Create and return a new quota permission context. 377 // Create and return a new quota permission context.
378 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 378 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
379 379
380 // Informs the embedder that a certificate error has occured. If 380 // Informs the embedder that a certificate error has occured. If
381 // |overridable| is true and if |strict_enforcement| is false, the user 381 // |overridable| is true and if |strict_enforcement| is false, the user
382 // can ignore the error and continue. The embedder can call the callback 382 // can ignore the error and continue. The embedder can call the callback
383 // asynchronously. If |result| is not set to 383 // asynchronously. If |result| is not set to
384 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled 384 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled
385 // or denied immediately, and the callback won't be run. 385 // or denied immediately, and the callback won't be run.
386 virtual void AllowCertificateError( 386 virtual void AllowCertificateError(int render_process_id,
387 int render_process_id, 387 int render_frame_id,
388 int render_frame_id, 388 int cert_error,
389 int cert_error, 389 const net::SSLInfo& ssl_info,
390 const net::SSLInfo& ssl_info, 390 const GURL& request_url,
391 const GURL& request_url, 391 ResourceType resource_type,
392 ResourceType::Type resource_type, 392 bool overridable,
393 bool overridable, 393 bool strict_enforcement,
394 bool strict_enforcement, 394 const base::Callback<void(bool)>& callback,
395 const base::Callback<void(bool)>& callback, 395 CertificateRequestResultType* result) {}
396 CertificateRequestResultType* result) {}
397 396
398 // Selects a SSL client certificate and returns it to the |callback|. If no 397 // Selects a SSL client certificate and returns it to the |callback|. If no
399 // certificate was selected NULL is returned to the |callback|. 398 // certificate was selected NULL is returned to the |callback|.
400 virtual void SelectClientCertificate( 399 virtual void SelectClientCertificate(
401 int render_process_id, 400 int render_process_id,
402 int render_frame_id, 401 int render_frame_id,
403 const net::HttpNetworkSession* network_session, 402 const net::HttpNetworkSession* network_session,
404 net::SSLCertRequestInfo* cert_request_info, 403 net::SSLCertRequestInfo* cert_request_info,
405 const base::Callback<void(net::X509Certificate*)>& callback) {} 404 const base::Callback<void(net::X509Certificate*)>& callback) {}
406 405
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
654 // implementation. Return NULL to disable external surface video. 653 // implementation. Return NULL to disable external surface video.
655 virtual ExternalVideoSurfaceContainer* 654 virtual ExternalVideoSurfaceContainer*
656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
657 #endif 656 #endif
658 }; 657 };
659 658
660 } // namespace content 659 } // namespace content
661 660
662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_child.gypi ('k') | content/public/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698