diff options
author | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 09:08:19 +0000 |
---|---|---|
committer | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 09:08:19 +0000 |
commit | 3690ebe09a8c3cea0fd7d9ece8f5b8d8ebc65c19 (patch) | |
tree | b26f7f81e48a95473eb4af5304301e9d8cd22fb8 /net/http | |
parent | eef99b6591d82399096abdcee07dd67359eec036 (diff) | |
download | chromium_src-3690ebe09a8c3cea0fd7d9ece8f5b8d8ebc65c19.zip chromium_src-3690ebe09a8c3cea0fd7d9ece8f5b8d8ebc65c19.tar.gz chromium_src-3690ebe09a8c3cea0fd7d9ece8f5b8d8ebc65c19.tar.bz2 |
Virtual destructors should have virtual keyword.
Make sure user-declared virtual destructors always have the virtual keyword.
The Clang style-check plugin will check for this soon.
No functionality change: virtual is only added
to destructors that are already implicitly virtual.
Also fix a couple of in-line destructor definitions.
BUG=83408
TEST=none
Review URL: http://codereview.chromium.org/7064033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_auth_handler_basic.h | 2 | ||||
-rw-r--r-- | net/http/http_auth_handler_digest.h | 2 | ||||
-rw-r--r-- | net/http/http_auth_handler_ntlm.h | 2 | ||||
-rw-r--r-- | net/http/http_cache.h | 2 | ||||
-rw-r--r-- | net/http/http_stream_parser.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/net/http/http_auth_handler_basic.h b/net/http/http_auth_handler_basic.h index b98c7fd..5c747c9 100644 --- a/net/http/http_auth_handler_basic.h +++ b/net/http/http_auth_handler_basic.h @@ -45,7 +45,7 @@ class NET_TEST HttpAuthHandlerBasic : public HttpAuthHandler { std::string* auth_token); private: - ~HttpAuthHandlerBasic() {} + virtual ~HttpAuthHandlerBasic() {} bool ParseChallenge(HttpAuth::ChallengeTokenizer* challenge); }; diff --git a/net/http/http_auth_handler_digest.h b/net/http/http_auth_handler_digest.h index a9bf0ec..7b0f120 100644 --- a/net/http/http_auth_handler_digest.h +++ b/net/http/http_auth_handler_digest.h @@ -122,7 +122,7 @@ class NET_TEST HttpAuthHandlerDigest : public HttpAuthHandler { // the handler. The lifetime of the |nonce_generator| must exceed that of this // handler. HttpAuthHandlerDigest(int nonce_count, const NonceGenerator* nonce_generator); - ~HttpAuthHandlerDigest(); + virtual ~HttpAuthHandlerDigest(); // Parse the challenge, saving the results into this instance. // Returns true on success. diff --git a/net/http/http_auth_handler_ntlm.h b/net/http/http_auth_handler_ntlm.h index ae7c78b..c5050af 100644 --- a/net/http/http_auth_handler_ntlm.h +++ b/net/http/http_auth_handler_ntlm.h @@ -127,7 +127,7 @@ class HttpAuthHandlerNTLM : public HttpAuthHandler { std::string* auth_token); private: - ~HttpAuthHandlerNTLM(); + virtual ~HttpAuthHandlerNTLM(); #if defined(NTLM_PORTABLE) // For unit tests to override the GenerateRandom and GetHostName functions. diff --git a/net/http/http_cache.h b/net/http/http_cache.h index 3fbb5e1..861d36b 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -144,7 +144,7 @@ class NET_API HttpCache : public HttpTransactionFactory, NetLog* net_log, BackendFactory* backend_factory); - ~HttpCache(); + virtual ~HttpCache(); HttpTransactionFactory* network_layer() { return network_layer_.get(); } diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h index 2192eff..40a4a0a 100644 --- a/net/http/http_stream_parser.h +++ b/net/http/http_stream_parser.h @@ -37,7 +37,7 @@ class HttpStreamParser : public ChunkCallback { const HttpRequestInfo* request, GrowableIOBuffer* read_buffer, const BoundNetLog& net_log); - ~HttpStreamParser(); + virtual ~HttpStreamParser(); // These functions implement the interface described in HttpStream with // some additional functionality |