Bug 798033 - Removes 'using namespace' from toolkit headers - r=bsmedberg

This commit is contained in:
Matt Joras 2012-11-01 18:09:22 -04:00
parent ff4f9747f3
commit 45a6c11d52
4 changed files with 11 additions and 10 deletions

View File

@ -24,7 +24,6 @@
#define TOPIC_FRECENCY_UPDATED "places-frecency-updated"
#define WAITFORTOPIC_TIMEOUT_SECONDS 5
using namespace mozilla;
static size_t gTotalTests = 0;
static size_t gPassedTests = 0;
@ -183,10 +182,10 @@ struct VisitRecord
int32_t transitionType;
};
already_AddRefed<IHistory>
already_AddRefed<mozilla::IHistory>
do_get_IHistory()
{
nsCOMPtr<IHistory> history = do_GetService(NS_IHISTORY_CONTRACTID);
nsCOMPtr<mozilla::IHistory> history = do_GetService(NS_IHISTORY_CONTRACTID);
do_check_true(history);
return history.forget();
}

View File

@ -11,6 +11,7 @@
#include "mozilla/Attributes.h"
#include "mock_Link.h"
using namespace mozilla;
using namespace mozilla::dom;
/**

View File

@ -6,6 +6,8 @@
#include "nsUrlClassifierProxies.h"
#include "nsUrlClassifierDBService.h"
using namespace mozilla::safebrowsing;
static nsresult
DispatchToWorkerThread(nsIRunnable* r)
{

View File

@ -13,7 +13,6 @@
#include "nsIPrincipal.h"
#include "LookupCache.h"
using namespace mozilla::safebrowsing;
/**
* Thread proxy from the main thread to the worker thread.
@ -124,7 +123,7 @@ public:
{
public:
CacheCompletionsRunnable(nsIUrlClassifierDBServiceWorker* aTarget,
CacheResultArray *aEntries)
mozilla::safebrowsing::CacheResultArray *aEntries)
: mTarget(aTarget)
, mEntries(aEntries)
{ }
@ -133,14 +132,14 @@ public:
private:
nsCOMPtr<nsIUrlClassifierDBServiceWorker> mTarget;
CacheResultArray *mEntries;
mozilla::safebrowsing::CacheResultArray *mEntries;
};
class CacheMissesRunnable : public nsRunnable
{
public:
CacheMissesRunnable(nsIUrlClassifierDBServiceWorker* aTarget,
PrefixArray *aEntries)
mozilla::safebrowsing::PrefixArray *aEntries)
: mTarget(aTarget)
, mEntries(aEntries)
{ }
@ -149,7 +148,7 @@ public:
private:
nsCOMPtr<nsIUrlClassifierDBServiceWorker> mTarget;
PrefixArray *mEntries;
mozilla::safebrowsing::PrefixArray *mEntries;
};
private:
@ -173,7 +172,7 @@ public:
{
public:
LookupCompleteRunnable(nsMainThreadPtrHolder<nsIUrlClassifierLookupCallback>* aTarget,
LookupResultArray *aResults)
mozilla::safebrowsing::LookupResultArray *aResults)
: mTarget(aTarget)
, mResults(aResults)
{ }
@ -182,7 +181,7 @@ public:
private:
nsMainThreadPtrHandle<nsIUrlClassifierLookupCallback> mTarget;
LookupResultArray * mResults;
mozilla::safebrowsing::LookupResultArray * mResults;
};
private: