| Index: third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
|
| diff --git a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
|
| index 76321e620ff8b7fe76c5426afa37ffc40a37aa23..05551cb328cf78ae031f3616f225b903f238bd9c 100644
|
| --- a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
|
| +++ b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
|
| @@ -33,14 +33,14 @@ class WebURLLoaderMockFactory {
|
|
|
| // Registers a response and the file to be served when the specified URL
|
| // is loaded. If no file is specified then the response content will be empty.
|
| - // unregisterURL() should be called for each test entry before registering
|
| + // UnregisterURL() should be called for each test entry before registering
|
| // another response for the same URL from another test.
|
| virtual void RegisterURL(const WebURL&,
|
| const WebURLResponse&,
|
| const WebString& file_path) = 0;
|
|
|
| // Registers an error to be served when the specified URL is requested.
|
| - // unregisterURL() should be called for each test entry before registering
|
| + // UnregisterURL() should be called for each test entry before registering
|
| // another response for the same URL from another test.
|
| virtual void RegisterErrorURL(const WebURL&,
|
| const WebURLResponse&,
|
| @@ -49,6 +49,17 @@ class WebURLLoaderMockFactory {
|
| // Unregisters the given URL so it is no longer mocked.
|
| virtual void UnregisterURL(const WebURL&) = 0;
|
|
|
| + // Registers a response and the file to be served when a URL with the given
|
| + // protocol is loaded. If no file is specified then the response content will
|
| + // be empty. UnregisterProtocol() should be called for each test entry before
|
| + // registering another response for the same protocol from another test.
|
| + virtual void RegisterURLProtocol(const WebString& protocol,
|
| + const WebURLResponse&,
|
| + const WebString& file_path) = 0;
|
| +
|
| + // Unregisters the given URL protocol so it is no longer mocked.
|
| + virtual void UnregisterURLProtocol(const WebString& protocol) = 0;
|
| +
|
| // Unregisters URLs so they are no longer mocked. This also clears the
|
| // MemoryCache.
|
| virtual void UnregisterAllURLsAndClearMemoryCache() = 0;
|
|
|