cef/include
Marshall Greenblatt 8f240861e3 Implement NetworkService request interception/handling (see issue #2622).
Implementation notes:
- Chromium change: CookieMonster::SetCookieableSchemes needs to be called
  immediately after the CookieMonster is created in NetworkContext::
  ApplyContextParamsToBuilder. Add a Profile::GetCookieableSchemes method and
  NetworkContextParams.cookieable_schemes member (set from
  ProfileNetworkContextService::CreateNetworkContextParams) to support that.
- Chromium change: Add a ContentBrowserClient::HandleExternalProtocol variant
  that exposes additional NetworkService request information.
- GetResourceResponseFilter is not yet implemented.

API changes:
- Resource-related callbacks have been moved from CefRequestHandler to a new
  CefResourceRequestHandler interface which is returned via the
  GetResourceRequestHandler method. If the CefRequestHandler declines to handle
  a resource it can optionally be handled by the CefRequestContextHandler, if
  any, associated with the loading context.
- The OnProtocolExecution callback has been moved from CefRequestHandler to
  CefResourceRequestHandler and will be called if a custom scheme request is
  unhandled.
- Cookie send/save permission callbacks have been moved from CefRequestHandler
  and CefResourceHandler to CefResourceRequestHandler.
- New methods added to CefResourceHandler that better match NetworkService
  execution sequence expectations. The old methods are now deprecated.
- New methods added to CefRequest and CefResponse.

Known behavior changes with the NetworkService implementation:
- Modifying the |new_url| parameter in OnResourceRedirect will no longer result
  in the method being called an additional time (likely a bug in the old
  implementation).
- Modifying the request URL in OnResourceResponse would previously cause a
  redirect. This behavior is now deprecated because the NetworkService does not
  support this functionality when using default network loaders. Temporary
  support has been added in combination with CefResourceHandler usage only.
- Other changes to the request object in OnResourceResponse will now cause the
  request to be restarted. This means that OnBeforeResourceLoad, etc, will be
  called an additional time with the new request information.
- CefResponse::GetMimeType will now be empty for non-200 responses.
- Requests using custom schemes can now be handled via CefResourceRequestHandler
  with the same callback behavior as builtin schemes.
- Redirects of custom scheme requests will now be followed as expected.
- Default handling of builtin schemes can now be disabled by setting
  |disable_default_handling| to true in GetResourceRequestHandler.
- Unhandled requests (custom scheme or builtin scheme with default handling
  disabled) will fail with an CefResponse::GetError value of
  ERR_UNKNOWN_URL_SCHEME.
- The CefSchemeHandlerFactory::Create callback will now include cookie headers.

To test:
- Run `cefclient --enable-network-service`. All resources should load
  successfully (this tests the transparent proxy capability).
- All tests pass with NetworkService disabled.
- The following tests pass with NetworkService enabled:
  - CookieTest.*
  - FrameTest.* (excluding .*Nav)
  - NavigationTest.* (excluding .Redirect*)
  - RequestHandlerTest.*
  - RequestContextTest.Basic*
  - RequestContextTest.Popup*
  - RequestTest.*
  - ResourceManagerTest.*
  - ResourceRequestHandlerTest.* (excluding .Filter*)
  - SchemeHandlerTest.*
  - StreamResourceHandlerTest.*
2019-04-23 22:53:28 -04:00
..
base Use net/base/net_error_list.h to populate the cef_errorcode_t enum (fixes issue #2650) 2019-04-16 12:07:33 -04:00
capi Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
internal macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
test Update to Chromium revision d483fb77 (#474934) 2017-06-02 05:55:23 -07:00
views Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
wrapper macOS: Add support for and enable the V2 sandbox (issue #2459) 2018-07-27 22:33:31 -04:00
cef_accessibility_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_api_hash.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_app.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_application_mac.h macOS: Added guard to previously overlooked C++ include (issue #2297) 2017-11-28 15:52:00 +00:00
cef_audio_handler.h Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
cef_auth_callback.h Allow empty username parameter to CefAuthCallback::Continue (issue #2275) 2018-03-28 19:29:28 -04:00
cef_base.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
cef_browser_process_handler.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_browser.h Add multi-touch support for OSR (issue #1059) 2019-02-26 11:51:33 -05:00
cef_callback.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_client.h Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
cef_command_line.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_context_menu_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_cookie.h Move CookieManager callbacks to the UI thread (see issue #2622). 2019-03-25 15:36:08 -04:00
cef_crash_util.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_dialog_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_display_handler.h Add CefDisplayHandler::OnLoadingProgressChange callback (issue #2382) 2018-04-10 13:52:31 -04:00
cef_dom.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_download_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_download_item.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_drag_data.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_drag_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_extension_handler.h Add chrome.tabs.create API support (issue #1947) 2017-09-28 15:41:10 +02:00
cef_extension.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
cef_file_util.h Add support for loading certificate revocation lists (issue #2213) 2017-07-11 15:44:35 -04:00
cef_find_handler.h Rename CefBase to CefBaseRefCounted (issue #2090) 2017-02-09 17:50:59 -05:00
cef_focus_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_frame.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_image.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_jsdialog_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_keyboard_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_life_span_handler.h Update to Chromium revision d483fb77 (#474934) 2017-06-02 05:55:23 -07:00
cef_load_handler.h Update to Chromium revision 939b32ee (#454471) 2017-03-08 13:33:05 -08:00
cef_menu_model_delegate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_menu_model.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_navigation_entry.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_origin_whitelist.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_parser.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_path_util.h - Add example to cefclient of launching DevTools in an external browser window and process using new CefGetPath and CefLaunchProcess functions (issue #639). 2012-06-26 16:47:05 +00:00
cef_print_handler.h Linux: Don't pass NULL CefBrowser to PrintHandler::GetPdfPaperSize (issue #2199) 2017-06-17 12:49:41 +03:00
cef_print_settings.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_process_message.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_process_util.h - Add example to cefclient of launching DevTools in an external browser window and process using new CefGetPath and CefLaunchProcess functions (issue #639). 2012-06-26 16:47:05 +00:00
cef_render_handler.h Add CefRenderHandler::OnVirtualKeyboardRequested (issue #2607) 2019-02-26 16:49:41 +00:00
cef_render_process_handler.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_request_callback.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_request_context_handler.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_request_context.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_request_handler.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_request.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_resource_bundle_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_resource_bundle.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_resource_handler.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_resource_request_handler.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_response_filter.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_response.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_sandbox_mac.h macOS: Export only CEF symbols from cef_sandbox.a (issue #2459) 2019-01-11 11:59:46 +01:00
cef_sandbox_win.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_scheme.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_server.h Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
cef_ssl_info.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_ssl_status.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_stream.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_string_visitor.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_task.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_thread.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_trace.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_urlrequest.h Add CefURLRequest::ResponseWasCached method (issue #2283) 2018-01-03 16:14:29 -05:00
cef_v8.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_values.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_waitable_event.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_web_plugin.h Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
cef_x509_certificate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_xml_reader.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_zip_reader.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00