Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Unified Diff: Source/core/loader/cache/CachedResourceHandle.h

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/loader/cache/CachedResourceHandle.h
diff --git a/Source/core/loader/cache/CachedResourceHandle.h b/Source/core/loader/cache/CachedResourceHandle.h
index 04fedf8c169b7ddb9c6d83de7c6f98dfe4ef83bb..9300eac3efed76fad04e20efb4fc934e9245f3b4 100644
--- a/Source/core/loader/cache/CachedResourceHandle.h
+++ b/Source/core/loader/cache/CachedResourceHandle.h
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CachedResourceHandle_h
@@ -34,9 +34,9 @@ namespace WebCore {
public:
~CachedResourceHandleBase() { if (m_resource) m_resource->unregisterHandle(this); }
CachedResource* get() const { return m_resource; }
-
+
bool operator!() const { return !m_resource; }
-
+
// This conversion operator allows implicit conversion to bool but not to other integer types.
typedef CachedResource* CachedResourceHandleBase::*UnspecifiedBoolType;
operator UnspecifiedBoolType() const { return m_resource ? &CachedResourceHandleBase::m_resource : 0; }
@@ -47,17 +47,17 @@ namespace WebCore {
CachedResourceHandleBase(const CachedResourceHandleBase& o) : m_resource(o.m_resource) { if (m_resource) m_resource->registerHandle(this); }
void setResource(CachedResource*);
-
+
private:
- CachedResourceHandleBase& operator=(const CachedResourceHandleBase&) { return *this; }
-
+ CachedResourceHandleBase& operator=(const CachedResourceHandleBase&) { return *this; }
+
friend class CachedResource;
CachedResource* m_resource;
};
-
+
template <class R> class CachedResourceHandle : public CachedResourceHandleBase {
- public:
+ public:
CachedResourceHandle() { }
CachedResourceHandle(R* res) : CachedResourceHandleBase(res) { }
CachedResourceHandle(const CachedResourceHandle<R>& o) : CachedResourceHandleBase(o) { }
@@ -65,8 +65,8 @@ namespace WebCore {
R* get() const { return reinterpret_cast<R*>(CachedResourceHandleBase::get()); }
R* operator->() const { return get(); }
-
- CachedResourceHandle& operator=(R* res) { setResource(res); return *this; }
+
+ CachedResourceHandle& operator=(R* res) { setResource(res); return *this; }
CachedResourceHandle& operator=(const CachedResourceHandle& o) { setResource(o.get()); return *this; }
template<typename U> CachedResourceHandle& operator=(const CachedResourceHandle<U>& o) { setResource(o.get()); return *this; }
@@ -74,21 +74,21 @@ namespace WebCore {
bool operator!=(const CachedResourceHandleBase& o) const { return get() != o.get(); }
};
- template <class R, class RR> bool operator==(const CachedResourceHandle<R>& h, const RR* res)
- {
- return h.get() == res;
+ template <class R, class RR> bool operator==(const CachedResourceHandle<R>& h, const RR* res)
+ {
+ return h.get() == res;
}
- template <class R, class RR> bool operator==(const RR* res, const CachedResourceHandle<R>& h)
- {
- return h.get() == res;
+ template <class R, class RR> bool operator==(const RR* res, const CachedResourceHandle<R>& h)
+ {
+ return h.get() == res;
}
- template <class R, class RR> bool operator!=(const CachedResourceHandle<R>& h, const RR* res)
- {
- return h.get() != res;
+ template <class R, class RR> bool operator!=(const CachedResourceHandle<R>& h, const RR* res)
+ {
+ return h.get() != res;
}
- template <class R, class RR> bool operator!=(const RR* res, const CachedResourceHandle<R>& h)
- {
- return h.get() != res;
+ template <class R, class RR> bool operator!=(const RR* res, const CachedResourceHandle<R>& h)
+ {
+ return h.get() != res;
}
}
« no previous file with comments | « Source/core/loader/cache/CachedResourceClientWalker.h ('k') | Source/core/loader/cache/CachedResourceHandle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698