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

Unified Diff: third_party/WebKit/Source/core/fetch/MockResourceClient.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 11 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: third_party/WebKit/Source/core/fetch/MockResourceClient.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MockResourceClient.cpp b/third_party/WebKit/Source/core/fetch/MockResourceClient.cpp
deleted file mode 100644
index 0534cd63f1483aa777cea1eea746d8b15b66d7e1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/MockResourceClient.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 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.
-
-#include "core/fetch/MockResourceClient.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blink {
-
-MockResourceClient::MockResourceClient(Resource* resource)
- : m_resource(resource),
- m_notifyFinishedCalled(false),
- m_encodedSizeOnNotifyFinished(0) {
- m_resource->addClient(this);
-}
-
-MockResourceClient::~MockResourceClient() {}
-
-void MockResourceClient::notifyFinished(Resource* resource) {
- ASSERT_FALSE(m_notifyFinishedCalled);
- m_notifyFinishedCalled = true;
- m_encodedSizeOnNotifyFinished = resource->encodedSize();
-}
-
-void MockResourceClient::removeAsClient() {
- m_resource->removeClient(this);
- m_resource = nullptr;
-}
-
-void MockResourceClient::dispose() {
- if (m_resource) {
- m_resource->removeClient(this);
- m_resource = nullptr;
- }
-}
-
-DEFINE_TRACE(MockResourceClient) {
- visitor->trace(m_resource);
- ResourceClient::trace(visitor);
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MockResourceClient.h ('k') | third_party/WebKit/Source/core/fetch/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698