diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 00:59:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 00:59:40 +0000 |
commit | 6c1e05217fb089245b77e39fd6a46f26c4b85e54 (patch) | |
tree | 770ce08ff82343a522b92e37558faa1aff8e4804 /content/browser/ssl/ssl_cert_error_handler.h | |
parent | 1ecda815adaacdc68dc7769c1f34d5182799abc4 (diff) | |
download | chromium_src-6c1e05217fb089245b77e39fd6a46f26c4b85e54.zip chromium_src-6c1e05217fb089245b77e39fd6a46f26c4b85e54.tar.gz chromium_src-6c1e05217fb089245b77e39fd6a46f26c4b85e54.tar.bz2 |
content: ResourceType cleanup.
0) Converted the ResourceType::Type enum to ResourceType enum in content namespace, like this:
enum ResourceType {
RESOURCE_TYPE_MAIN_FRAME = 0, //...
RESOURCE_TYPE_SUB_FRAME, // ...
RESOURCE_TYPE_STYLESHEET, // ...
.
.
.
};
1) FromWebURLRequest() is is only called from within content (child & renderer), moved into
content/child/web_url_request_util.* and renamed to WebURLRequestToResourceType().
2) ValidType/FromInt/IsSubresource aren't called from anywhere. Removed.
3) IsSharedWorker/IsServiceWorker are not necessary, they're just
an enum
comparison and are only called in 5 places. Removed them and
just the if check directly.
-IsFrame is called in a number of places. Leave it
in this header as a function. Since it's not scoped in a class
anymore,
it needs a more descriptive name. Renamed to IsResourceTypeFrame().
BUG=None
TEST=None
R=jam@chromium.org
TBR=darin@chromium # trivial changes all around src/
Review URL: https://codereview.chromium.org/425653002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/ssl/ssl_cert_error_handler.h')
-rw-r--r-- | content/browser/ssl/ssl_cert_error_handler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/ssl/ssl_cert_error_handler.h b/content/browser/ssl/ssl_cert_error_handler.h index 6946f42..4e14690 100644 --- a/content/browser/ssl/ssl_cert_error_handler.h +++ b/content/browser/ssl/ssl_cert_error_handler.h @@ -21,7 +21,7 @@ class SSLCertErrorHandler : public SSLErrorHandler { // Construct on the IO thread. SSLCertErrorHandler(const base::WeakPtr<Delegate>& delegate, const GlobalRequestID& id, - ResourceType::Type resource_type, + ResourceType resource_type, const GURL& url, int render_process_id, int render_frame_id, |