Skip to content

Commit

Permalink
Convert LOG(INFO) to VLOG(1) - webkit/.
Browse files Browse the repository at this point in the history
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3822006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63001 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pkasting@chromium.org committed Oct 19, 2010
1 parent 0c3a20c commit c0b4b82
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 35 deletions.
4 changes: 2 additions & 2 deletions webkit/appcache/appcache_database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void AppCacheDatabase::CloseConnection() {
}

void AppCacheDatabase::Disable() {
LOG(INFO) << "Disabling appcache database.";
VLOG(1) << "Disabling appcache database.";
is_disabled_ = true;
ResetConnectionAndTables();
}
Expand Down Expand Up @@ -1103,7 +1103,7 @@ void AppCacheDatabase::ResetConnectionAndTables() {
bool AppCacheDatabase::DeleteExistingAndCreateNewDatabase() {
DCHECK(!db_file_path_.empty());
DCHECK(file_util::PathExists(db_file_path_));
LOG(INFO) << "Deleting existing appcache data and starting over.";
VLOG(1) << "Deleting existing appcache data and starting over.";

ResetConnectionAndTables();

Expand Down
4 changes: 2 additions & 2 deletions webkit/appcache/appcache_storage_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ void AppCacheStorageImpl::Initialize(const FilePath& cache_directory,
void AppCacheStorageImpl::Disable() {
if (is_disabled_)
return;
LOG(INFO) << "Disabling appcache storage.";
VLOG(1) << "Disabling appcache storage.";
is_disabled_ = true;
origins_with_groups_.clear();
working_set()->Disable();
Expand Down Expand Up @@ -1318,7 +1318,7 @@ void AppCacheStorageImpl::OnDiskCacheInitialized(int rv) {
// session should start with a clean slate.
Disable();
if (!is_incognito_) {
LOG(INFO) << "Deleting existing appcache data and starting over.";
VLOG(1) << "Deleting existing appcache data and starting over.";
AppCacheThread::PostTask(AppCacheThread::db(), FROM_HERE,
NewRunnableFunction(DeleteDirectory, cache_directory_));
}
Expand Down
14 changes: 7 additions & 7 deletions webkit/appcache/appcache_update_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void AppCacheUpdateJob::ContinueHandleManifestFetchCompleted(bool changed) {
const std::string message = base::StringPrintf(kFormatString,
manifest_url_.spec().c_str());
HandleCacheFailure(message);
LOG(INFO) << message;
VLOG(1) << message;
return;
}

Expand Down Expand Up @@ -646,9 +646,9 @@ void AppCacheUpdateJob::HandleUrlFetchCompleted(URLRequest* request) {
// whose value doesn't match the manifest url of the application cache
// being processed, mark the entry as being foreign.
} else {
LOG(INFO) << "Request status: " << request->status().status()
<< " os_error: " << request->status().os_error()
<< " response code: " << response_code;
VLOG(1) << "Request status: " << request->status().status()
<< " os_error: " << request->status().os_error()
<< " response code: " << response_code;
if (entry.IsExplicit() || entry.IsFallback()) {
if (response_code == 304 && info->existing_entry_.has_response_id()) {
// Keep the existing response.
Expand Down Expand Up @@ -788,9 +788,9 @@ void AppCacheUpdateJob::HandleManifestRefetchCompleted(URLRequest* request) {
&manifest_info_write_callback_);
}
} else {
LOG(INFO) << "Request status: " << request->status().status()
<< " os_error: " << request->status().os_error()
<< " response code: " << response_code;
VLOG(1) << "Request status: " << request->status().status()
<< " os_error: " << request->status().os_error()
<< " response code: " << response_code;
ScheduleUpdateRetry(kRerunDelayMs);
HandleCacheFailure("Manifest changed during update, scheduling retry");
}
Expand Down
6 changes: 2 additions & 4 deletions webkit/glue/media/video_renderer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ void VideoRendererImpl::Paint(skia::PlatformCanvas* canvas,
// on low-end devices. When profiled on an Intel Atom N280 @ 1.66GHz this
// code had a ~63 microsecond perf hit when logging to a file (not stdout),
// which is neglible enough for measuring playback performance.
if (pts_logging_) {
LOG(INFO) << "pts="
<< video_frame->GetTimestamp().InMicroseconds();
}
if (pts_logging_)
VLOG(1) << "pts=" << video_frame->GetTimestamp().InMicroseconds();
}

PutCurrentFrame(video_frame);
Expand Down
2 changes: 1 addition & 1 deletion webkit/glue/plugins/pepper_plugin_instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ bool PluginInstance::SetFullscreen(bool fullscreen) {
bool is_fullscreen = (fullscreen_container_ != NULL);
if (fullscreen == is_fullscreen)
return true;
LOG(INFO) << "Setting fullscreen to " << (fullscreen ? "on" : "off");
VLOG(1) << "Setting fullscreen to " << (fullscreen ? "on" : "off");
if (fullscreen) {
fullscreen_container_ = delegate_->CreateFullscreenContainer(this);
} else {
Expand Down
24 changes: 12 additions & 12 deletions webkit/glue/plugins/plugin_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ uint32_t NPN_MemFlush(uint32_t size) {
// Should force a re-scan of the plugins directory to load new ones.
void NPN_ReloadPlugins(NPBool reloadPages) {
// TODO: implement me
DLOG(INFO) << "NPN_ReloadPlugin is not implemented yet.";
DVLOG(1) << "NPN_ReloadPlugin is not implemented yet.";
}

// Requests a range of bytes for a seekable stream.
Expand Down Expand Up @@ -526,15 +526,15 @@ NPError NPN_NewStream(NPP id,
// Browser should put this stream into a window target.
//
// TODO: implement me
DLOG(INFO) << "NPN_NewStream is not implemented yet.";
DVLOG(1) << "NPN_NewStream is not implemented yet.";
return NPERR_GENERIC_ERROR;
}

int32_t NPN_Write(NPP id, NPStream* stream, int32_t len, void* buffer) {
// Writes data to an existing Plugin-created stream.

// TODO: implement me
DLOG(INFO) << "NPN_Write is not implemented yet.";
DVLOG(1) << "NPN_Write is not implemented yet.";
return NPERR_GENERIC_ERROR;
}

Expand Down Expand Up @@ -594,7 +594,7 @@ void NPN_Status(NPP id, const char* message) {
// Displays a message on the status line of the browser window.

// TODO: implement me
DLOG(INFO) << "NPN_Status is not implemented yet.";
DVLOG(1) << "NPN_Status is not implemented yet.";
}

void NPN_InvalidateRect(NPP id, NPRect *invalidRect) {
Expand Down Expand Up @@ -829,7 +829,7 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) {
rv = NPAPI::GetPepperExtensionsFunctions(value);
break;
default:
DLOG(INFO) << "NPN_GetValue(" << variable << ") is not implemented yet.";
DVLOG(1) << "NPN_GetValue(" << variable << ") is not implemented yet.";
break;
}
return rv;
Expand Down Expand Up @@ -864,14 +864,14 @@ NPError NPN_SetValue(NPP id, NPPVariable variable, void* value) {
// Specifies whether you are pushing or popping the JSContext off.
// the stack
// TODO: implement me
DLOG(INFO) <<
"NPN_SetValue(NPPVJavascriptPushCallerBool) is not implemented.";
DVLOG(1) << "NPN_SetValue(NPPVJavascriptPushCallerBool) is not "
"implemented.";
return NPERR_GENERIC_ERROR;
case NPPVpluginKeepLibraryInMemory:
// Tells browser that plugin library should live longer than usual.
// TODO: implement me
DLOG(INFO) <<
"NPN_SetValue(NPPVpluginKeepLibraryInMemory) is not implemented.";
DVLOG(1) << "NPN_SetValue(NPPVpluginKeepLibraryInMemory) is not "
"implemented.";
return NPERR_GENERIC_ERROR;
#if defined(OS_MACOSX)
case NPPVpluginDrawingModel: {
Expand Down Expand Up @@ -902,7 +902,7 @@ NPError NPN_SetValue(NPP id, NPPVariable variable, void* value) {
#endif
default:
// TODO: implement me
DLOG(INFO) << "NPN_SetValue(" << variable << ") is not implemented.";
DVLOG(1) << "NPN_SetValue(" << variable << ") is not implemented.";
break;
}

Expand All @@ -912,13 +912,13 @@ NPError NPN_SetValue(NPP id, NPPVariable variable, void* value) {

void* NPN_GetJavaEnv() {
// TODO: implement me
DLOG(INFO) << "NPN_GetJavaEnv is not implemented.";
DVLOG(1) << "NPN_GetJavaEnv is not implemented.";
return NULL;
}

void* NPN_GetJavaPeer(NPP) {
// TODO: implement me
DLOG(INFO) << "NPN_GetJavaPeer is not implemented.";
DVLOG(1) << "NPN_GetJavaPeer is not implemented.";
return NULL;
}

Expand Down
14 changes: 7 additions & 7 deletions webkit/glue/websocketstreamhandle_impl.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Expand Down Expand Up @@ -72,22 +72,22 @@ WebSocketStreamHandleImpl::Context::Context(WebSocketStreamHandleImpl* handle)
}

void WebSocketStreamHandleImpl::Context::Connect(const WebKit::WebURL& url) {
LOG(INFO) << "Connect url=" << url;
VLOG(1) << "Connect url=" << url;
DCHECK(!bridge_);
bridge_ = WebSocketStreamHandleBridge::Create(handle_, this);
AddRef(); // Will be released by DidClose().
bridge_->Connect(url);
}

bool WebSocketStreamHandleImpl::Context::Send(const WebKit::WebData& data) {
LOG(INFO) << "Send data.size=" << data.size();
VLOG(1) << "Send data.size=" << data.size();
DCHECK(bridge_);
return bridge_->Send(
std::vector<char>(data.data(), data.data() + data.size()));
}

void WebSocketStreamHandleImpl::Context::Close() {
LOG(INFO) << "Close";
VLOG(1) << "Close";
if (bridge_)
bridge_->Close();
}
Expand All @@ -105,7 +105,7 @@ void WebSocketStreamHandleImpl::Context::Detach() {

void WebSocketStreamHandleImpl::Context::DidOpenStream(
WebKit::WebSocketStreamHandle* web_handle, int max_amount_send_allowed) {
LOG(INFO) << "DidOpen";
VLOG(1) << "DidOpen";
if (client_)
client_->didOpenStream(handle_, max_amount_send_allowed);
}
Expand All @@ -124,7 +124,7 @@ void WebSocketStreamHandleImpl::Context::DidReceiveData(

void WebSocketStreamHandleImpl::Context::DidClose(
WebKit::WebSocketStreamHandle* web_handle) {
LOG(INFO) << "DidClose";
VLOG(1) << "DidClose";
bridge_ = NULL;
WebSocketStreamHandleImpl* handle = handle_;
handle_ = NULL;
Expand All @@ -151,7 +151,7 @@ WebSocketStreamHandleImpl::~WebSocketStreamHandleImpl() {

void WebSocketStreamHandleImpl::connect(
const WebKit::WebURL& url, WebKit::WebSocketStreamHandleClient* client) {
LOG(INFO) << "connect url=" << url;
VLOG(1) << "connect url=" << url;
DCHECK(!context_->client());
context_->set_client(client);

Expand Down

0 comments on commit c0b4b82

Please sign in to comment.