OSDN Git Service

Fix a missing namespace in WebCache
authorSteve Block <steveblock@google.com>
Wed, 27 Oct 2010 20:24:20 +0000 (21:24 +0100)
committerSteve Block <steveblock@google.com>
Wed, 27 Oct 2010 20:24:20 +0000 (21:24 +0100)
Change-Id: I6d1bf42b3f5a81b24613ca4c62ba4e02400a63b0

WebKit/android/WebCoreSupport/WebCache.cpp

index 69ede65..b0ae915 100644 (file)
@@ -27,6 +27,8 @@
 #include "WebRequestContext.h"
 #include "WebUrlLoaderClient.h"
 
+using namespace net;
+
 namespace android {
 
 WebCache* WebCache::s_instance = 0;
@@ -60,11 +62,11 @@ void WebCache::doClear()
         return;
     m_isClearInProgress = true;
     URLRequestContext* context = WebRequestContext::get(false /* isPrivateBrowsing */);
-    net::HttpTransactionFactory* factory = context->http_transaction_factory();
+    HttpTransactionFactory* factory = context->http_transaction_factory();
     int code = factory->GetCache()->GetBackend(&m_cacheBackend, &m_doomAllEntriesCallback);
     // Code ERR_IO_PENDING indicates that the operation is still in progress and
     // the supplied callback will be invoked when it completes.
-    if (code == net::ERR_IO_PENDING)
+    if (code == ERR_IO_PENDING)
         return;
     else if (code != OK) {
         m_isClearInProgress = false;
@@ -83,7 +85,7 @@ void WebCache::doomAllEntries(int)
     int code = m_cacheBackend->DoomAllEntries(&m_doneCallback);
     // Code ERR_IO_PENDING indicates that the operation is still in progress and
     // the supplied callback will be invoked when it completes.
-    if (code == net::ERR_IO_PENDING)
+    if (code == ERR_IO_PENDING)
         return;
     else if (code != OK) {
         m_isClearInProgress = false;