summaryrefslogtreecommitdiffstats
path: root/chrome_frame/npapi_url_request.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 20:30:45 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 20:30:45 +0000
commit2b9a9f16465b34ee13e09e9b93086f75c925d3ac (patch)
tree1ee43ab289f8a3e9c787c954542d36a1484d177b /chrome_frame/npapi_url_request.cc
parent0cce0b0cef0b6dd04d1fe58f811ab64721fb96a9 (diff)
downloadchromium_src-2b9a9f16465b34ee13e09e9b93086f75c925d3ac.zip
chromium_src-2b9a9f16465b34ee13e09e9b93086f75c925d3ac.tar.gz
chromium_src-2b9a9f16465b34ee13e09e9b93086f75c925d3ac.tar.bz2
Convert LOG(INFO) to VLOG(1) - chrome_frame/.
Plus a couple misc. cleanups. BUG=none TEST=none Review URL: http://codereview.chromium.org/3850002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/npapi_url_request.cc')
-rw-r--r--chrome_frame/npapi_url_request.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/chrome_frame/npapi_url_request.cc b/chrome_frame/npapi_url_request.cc
index ebc4782..ad2416c 100644
--- a/chrome_frame/npapi_url_request.cc
+++ b/chrome_frame/npapi_url_request.cc
@@ -56,17 +56,17 @@ NPAPIUrlRequest::NPAPIUrlRequest(NPP instance)
pending_read_size_(0),
status_(URLRequestStatus::FAILED, net::ERR_FAILED),
thread_(PlatformThread::CurrentId()) {
- DLOG(INFO) << "Created request. Count: " << ++instance_count_;
+ DVLOG(1) << "Created request. Count: " << ++instance_count_;
}
NPAPIUrlRequest::~NPAPIUrlRequest() {
- DLOG(INFO) << "Deleted request. Count: " << --instance_count_;
+ DVLOG(1) << "Deleted request. Count: " << --instance_count_;
}
// NPAPIUrlRequest member defines.
bool NPAPIUrlRequest::Start() {
NPError result = NPERR_GENERIC_ERROR;
- DLOG(INFO) << "Starting URL request: " << url();
+ DVLOG(1) << "Starting URL request: " << url();
if (LowerCaseEqualsASCII(method(), "get")) {
// TODO(joshia): if we have extra headers for HTTP GET, then implement
// it using XHR
@@ -119,8 +119,8 @@ bool NPAPIUrlRequest::Start() {
}
void NPAPIUrlRequest::Stop() {
- DLOG(INFO) << "Finished request: Url - " << url() << " result: "
- << static_cast<int>(status_.status());
+ DVLOG(1) << "Finished request: Url - " << url()
+ << " result: " << static_cast<int>(status_.status());
status_.set_status(URLRequestStatus::CANCELED);
if (stream_) {
@@ -270,12 +270,12 @@ void NPAPIUrlRequestManager::SetCookiesForUrl(const GURL& url,
npapi::SetValueForURL(instance_, NPNURLVCookie, url.spec().c_str(),
cookie.c_str(), cookie.length());
} else {
- DLOG(INFO) << "Host does not support NPVERS_HAS_URL_AND_AUTH_INFO.";
- DLOG(INFO) << "Attempting to set cookie using XPCOM cookie service";
+ DVLOG(1) << "Host does not support NPVERS_HAS_URL_AND_AUTH_INFO. "
+ "Attempting to set cookie using XPCOM cookie service";
if (np_utils::SetCookiesUsingXPCOMCookieService(instance_, url.spec(),
cookie)) {
- DLOG(INFO) << "Successfully set cookies using XPCOM cookie service";
- DLOG(INFO) << cookie.c_str();
+ DVLOG(1) << "Successfully set cookies using XPCOM cookie service "
+ << cookie;
} else {
NOTREACHED() << "Failed to set cookies for host";
}
@@ -293,26 +293,26 @@ void NPAPIUrlRequestManager::GetCookiesForUrl(const GURL& url, int cookie_id) {
url.spec().c_str(), &cookies,
&cookie_length);
if (ret == NPERR_NO_ERROR) {
- DLOG(INFO) << "Obtained cookies:" << cookies << " from host";
+ DVLOG(1) << "Obtained cookies:" << cookies << " from host";
cookie_string.append(cookies, cookie_length);
npapi::MemFree(cookies);
} else {
success = false;
}
} else {
- DLOG(INFO) << "Host does not support NPVERS_HAS_URL_AND_AUTH_INFO.";
- DLOG(INFO) << "Attempting to read cookie using XPCOM cookie service";
+ DVLOG(1) << "Host does not support NPVERS_HAS_URL_AND_AUTH_INFO. "
+ "Attempting to read cookie using XPCOM cookie service";
if (np_utils::GetCookiesUsingXPCOMCookieService(instance_, url.spec(),
&cookie_string)) {
- DLOG(INFO) << "Successfully read cookies using XPCOM cookie service";
- DLOG(INFO) << cookie_string.c_str();
+ DVLOG(1) << "Successfully read cookies using XPCOM cookie service "
+ << cookie_string;
} else {
success = false;
}
}
if (!success)
- DLOG(INFO) << "Failed to return cookies for url:" << url.spec().c_str();
+ DVLOG(1) << "Failed to return cookies for url:" << url.spec();
OnCookiesRetrieved(success, url, cookie_string, cookie_id);
}