summaryrefslogtreecommitdiffstats
path: root/chrome/common/net
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/net')
-rw-r--r--chrome/common/net/gaia/gaia_authenticator.cc8
-rw-r--r--chrome/common/net/gaia/gaia_authenticator.h8
-rw-r--r--chrome/common/net/url_fetcher_protect.cc4
-rw-r--r--chrome/common/net/url_fetcher_protect.h4
-rw-r--r--chrome/common/net/url_request_context_getter.cc4
-rw-r--r--chrome/common/net/url_request_context_getter.h4
6 files changed, 27 insertions, 5 deletions
diff --git a/chrome/common/net/gaia/gaia_authenticator.cc b/chrome/common/net/gaia/gaia_authenticator.cc
index f544e94..7a7322c 100644
--- a/chrome/common/net/gaia/gaia_authenticator.cc
+++ b/chrome/common/net/gaia/gaia_authenticator.cc
@@ -26,6 +26,14 @@ static const char kGaiaV1IssueAuthTokenPath[] = "/accounts/IssueAuthToken";
static const char kGetUserInfoPath[] = "/accounts/GetUserInfo";
+GaiaAuthenticator::AuthResults::AuthResults() : auth_error(None) {}
+
+GaiaAuthenticator::AuthResults::~AuthResults() {}
+
+GaiaAuthenticator::AuthParams::AuthParams() {}
+
+GaiaAuthenticator::AuthParams::~AuthParams() {}
+
// Sole constructor with initializers for all fields.
GaiaAuthenticator::GaiaAuthenticator(const string& user_agent,
const string& service_id,
diff --git a/chrome/common/net/gaia/gaia_authenticator.h b/chrome/common/net/gaia/gaia_authenticator.h
index 696f403..789863e 100644
--- a/chrome/common/net/gaia/gaia_authenticator.h
+++ b/chrome/common/net/gaia/gaia_authenticator.h
@@ -131,6 +131,9 @@ class GaiaAuthenticator {
void SetAuthToken(const std::string& auth_token);
struct AuthResults {
+ AuthResults();
+ ~AuthResults();
+
std::string email;
std::string password;
@@ -147,13 +150,14 @@ class GaiaAuthenticator {
std::string auth_error_url;
std::string captcha_token;
std::string captcha_url;
-
- AuthResults() : auth_error(None) {}
};
protected:
struct AuthParams {
+ AuthParams();
+ ~AuthParams();
+
GaiaAuthenticator* authenticator;
uint32 request_id;
std::string email;
diff --git a/chrome/common/net/url_fetcher_protect.cc b/chrome/common/net/url_fetcher_protect.cc
index 05c8e2e2..f078fd4 100644
--- a/chrome/common/net/url_fetcher_protect.cc
+++ b/chrome/common/net/url_fetcher_protect.cc
@@ -52,6 +52,8 @@ URLFetcherProtectEntry::URLFetcherProtectEntry(int sliding_window_period,
ResetBackoff();
}
+URLFetcherProtectEntry::~URLFetcherProtectEntry() {}
+
int64 URLFetcherProtectEntry::UpdateBackoff(EventType event_type) {
// request may be sent in different threads
AutoLock lock(lock_);
@@ -174,3 +176,5 @@ URLFetcherProtectEntry* URLFetcherProtectManager::Register(
services_[id] = entry;
return entry;
}
+
+URLFetcherProtectManager::URLFetcherProtectManager() {}
diff --git a/chrome/common/net/url_fetcher_protect.h b/chrome/common/net/url_fetcher_protect.h
index 980353c..6372640 100644
--- a/chrome/common/net/url_fetcher_protect.h
+++ b/chrome/common/net/url_fetcher_protect.h
@@ -48,7 +48,7 @@ class URLFetcherProtectEntry {
int maximum_timeout);
- virtual ~URLFetcherProtectEntry() { }
+ virtual ~URLFetcherProtectEntry();
// When a connection event happens, log it to the queue, and recalculate
// the timeout period. It returns the backoff time, in milliseconds, that
@@ -138,7 +138,7 @@ class URLFetcherProtectManager {
URLFetcherProtectEntry* entry);
private:
- URLFetcherProtectManager() { }
+ URLFetcherProtectManager();
typedef std::map<const std::string, URLFetcherProtectEntry*> ProtectService;
diff --git a/chrome/common/net/url_request_context_getter.cc b/chrome/common/net/url_request_context_getter.cc
index e58b794..c53f782 100644
--- a/chrome/common/net/url_request_context_getter.cc
+++ b/chrome/common/net/url_request_context_getter.cc
@@ -10,6 +10,10 @@ net::CookieStore* URLRequestContextGetter::GetCookieStore() {
return GetURLRequestContext()->cookie_store();
}
+URLRequestContextGetter::URLRequestContextGetter() {}
+
+URLRequestContextGetter::~URLRequestContextGetter() {}
+
void URLRequestContextGetter::OnDestruct() {
scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy =
GetIOMessageLoopProxy();
diff --git a/chrome/common/net/url_request_context_getter.h b/chrome/common/net/url_request_context_getter.h
index 34aa668..89b28b5 100644
--- a/chrome/common/net/url_request_context_getter.h
+++ b/chrome/common/net/url_request_context_getter.h
@@ -39,7 +39,9 @@ class URLRequestContextGetter
friend class DeleteTask<URLRequestContextGetter>;
friend struct URLRequestContextGetterTraits;
- virtual ~URLRequestContextGetter() {}
+ URLRequestContextGetter();
+ virtual ~URLRequestContextGetter();
+
private:
// OnDestruct is meant to ensure deletion on the thread on which the request
// IO happens.