cef/libcef/browser
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
..
devtools Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
extensions Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
gpu Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
native Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
net Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
net_service Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
osr Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
plugins Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
prefs Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
printing Update to Chromium version 73.0.3683.0 (#625896) 2019-02-04 11:16:53 -05:00
views Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
audio_mirror_destination.cc Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
audio_mirror_destination.h Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
audio_push_sink.cc Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
audio_push_sink.h Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
browser_context_keyed_service_factories.cc Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
browser_context_keyed_service_factories.h Initialize required KeyedServiceFactories when extensions are disabled (issue #2359) 2018-02-02 17:44:08 -05:00
browser_context.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
browser_context.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
browser_host_impl.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
browser_host_impl.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
browser_info_manager.cc Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
browser_info_manager.h Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
browser_info.cc Resolve request mapping issues with swapped out frames and browser-side navigation (issue #2290) 2017-10-26 15:58:57 -04:00
browser_info.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
browser_main_win.cc Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
browser_main.cc Remove methods that modify cookie storage at runtime (see issue #2622). 2019-03-24 16:45:06 -04:00
browser_main.h Remove methods that modify cookie storage at runtime (see issue #2622). 2019-03-24 16:45:06 -04:00
browser_message_filter.cc Resolve request mapping issues with swapped out frames and browser-side navigation (issue #2290) 2017-10-26 15:58:57 -04:00
browser_message_filter.h Resolve request mapping issues with swapped out frames and browser-side navigation (issue #2290) 2017-10-26 15:58:57 -04:00
browser_message_loop.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
browser_message_loop.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
browser_platform_delegate_create.cc Linux: Add OSR use_external_begin_frame support (see issue #1006) 2019-03-18 21:07:02 +00:00
browser_platform_delegate.cc Add support for shared texture and external BeginFrame in OSR mode (issue #1006) 2018-09-26 13:10:49 +02:00
browser_platform_delegate.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
browser_urlrequest_impl.cc Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
browser_urlrequest_impl.h Add CefURLRequest::ResponseWasCached method (issue #2283) 2018-01-03 16:14:29 -05:00
browser_util.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
browser_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
chrome_browser_process_stub.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
chrome_browser_process_stub.h Remove Chromium patches that are no longer required (see issue #2622). 2019-03-24 16:45:07 -04:00
chrome_crash_reporter_client_stub.cc Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
chrome_profile_manager_stub.cc Remove methods that modify cookie storage at runtime (see issue #2622). 2019-03-24 16:45:06 -04:00
chrome_profile_manager_stub.h Add initial WebUI support (issue #2037) 2016-11-08 16:56:11 -08:00
chrome_profile_stub.cc Update to Chromium version 72.0.3626.0 (#612437) 2018-12-26 19:15:28 +02:00
chrome_profile_stub.h Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
content_browser_client.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
content_browser_client.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
context_menu_params_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
context_menu_params_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
context.cc Enforce cache_path requirements for NetworkService (see issue #2622). 2019-03-24 16:47:00 -04:00
context.h Enforce cache_path requirements for NetworkService (see issue #2622). 2019-03-24 16:47:00 -04:00
download_item_impl.cc Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
download_item_impl.h Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
download_manager_delegate.cc Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
download_manager_delegate.h Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
extension_impl.cc Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
extension_impl.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
file_dialog_manager.cc Update to Chromium version 72.0.3615.0 (#609159) 2018-12-04 14:45:37 -05:00
file_dialog_manager.h Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
file_dialog_runner.h Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
frame_host_impl.cc Fix bugs and test failures with browser-side navigation (issue #2290) 2017-11-30 18:20:24 -05:00
frame_host_impl.h Fix bugs and test failures with browser-side navigation (issue #2290) 2017-11-30 18:20:24 -05:00
image_impl.cc Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
image_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
javascript_dialog_manager.cc Remove unnecessary DCHECK(!dialog_running_) on browser destruction (issue #2589) 2019-02-11 17:50:03 -05:00
javascript_dialog_manager.h Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
javascript_dialog_runner.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
media_capture_devices_dispatcher.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
media_capture_devices_dispatcher.h Update to Chromium version 73.0.3679.0 (#624510) 2019-02-01 16:42:40 +00:00
menu_manager.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
menu_manager.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
menu_model_impl.cc Update to Chromium version 74.0.3706.0 (#632463) 2019-02-25 12:09:54 -05:00
menu_model_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
menu_runner.h Update to Chromium revision 6e53600d (#386251) 2016-04-28 12:57:08 -04:00
navigate_params.cc Fix uninitialized member CefNavigateParams::load_flags (issue #2580) 2019-01-29 17:53:11 +00:00
navigate_params.h Update to Chromium revision fa6a5d87 (#499098) 2017-09-07 17:29:47 -04:00
navigation_entry_impl.cc Update to Chromium version 73.0.3679.0 (#624510) 2019-02-01 16:42:40 +00:00
navigation_entry_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
origin_whitelist_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
origin_whitelist_impl.h Support cross-origin XMLHttpRequest loads and redirects for custom standard schemes when enabled via the cross-origin whitelist (issue #950). 2013-04-18 17:58:23 +00:00
path_util_impl.cc Update to Chromium version 68.0.3399.0 (#551554) 2018-05-16 11:23:34 +03:00
print_settings_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
print_settings_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
process_util_impl.cc Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
request_context_impl.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
request_context_impl.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
resource_context.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
resource_context.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
resource_dispatcher_host_delegate.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
resource_dispatcher_host_delegate.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
scheme_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
server_impl.cc Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
server_impl.h Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
speech_recognition_manager_delegate.cc Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
speech_recognition_manager_delegate.h Update to Chromium version 69.0.3464.0 (#567918) 2018-06-19 15:49:32 -04:00
ssl_host_state_delegate.cc Update to Chromium version 69.0.3464.0 (#567918) 2018-06-19 15:49:32 -04:00
ssl_host_state_delegate.h Update to Chromium version 69.0.3464.0 (#567918) 2018-06-19 15:49:32 -04:00
ssl_info_impl.cc Add callback for custom certificate selection (issue #1824) 2016-10-27 14:04:48 -04:00
ssl_info_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
ssl_status_impl.cc Add callback for custom certificate selection (issue #1824) 2016-10-27 14:04:48 -04:00
ssl_status_impl.h Update to Chromium revision 9cedf753 (#418732) 2016-10-20 16:54:25 -04:00
stream_impl.cc Move matching h file to top of header list (issue #2171) 2017-05-19 11:11:18 +02:00
stream_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
thread_util.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
trace_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
trace_subscriber.cc Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
trace_subscriber.h Update to Chromium revision 2b3ae3b8 (#394939) 2016-05-25 08:10:01 -07:00
web_plugin_impl.cc Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
web_plugin_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
x509_cert_principal_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
x509_cert_principal_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
x509_certificate_impl.cc Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
x509_certificate_impl.h Update to Chromium revision ff259bab (#488528) 2017-07-28 18:30:34 -04:00
xml_reader_impl.cc Move matching h file to top of header list (issue #2171) 2017-05-19 11:11:18 +02:00
xml_reader_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
zip_reader_impl.cc Move matching h file to top of header list (issue #2171) 2017-05-19 11:11:18 +02:00
zip_reader_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00