| Index: content/test/mock_webblob_registry_impl.h
|
| diff --git a/content/child/webblobregistry_impl.h b/content/test/mock_webblob_registry_impl.h
|
| similarity index 63%
|
| copy from content/child/webblobregistry_impl.h
|
| copy to content/test/mock_webblob_registry_impl.h
|
| index 6588a5290735268ed998c96b09545e1a94f84ef4..41fb66d73f6c31dc7962f243fb8f19c7974fb67f 100644
|
| --- a/content/child/webblobregistry_impl.h
|
| +++ b/content/test/mock_webblob_registry_impl.h
|
| @@ -1,28 +1,19 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 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.
|
|
|
| -#ifndef CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
|
| -#define CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
|
| +#ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
|
| +#define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
|
|
|
| -#include "base/memory/ref_counted.h"
|
| +#include "base/macros.h"
|
| #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
|
| -#include "webkit/common/blob/blob_data.h"
|
| -
|
| -namespace blink {
|
| -class WebBlobData;
|
| -class WebString;
|
| -class WebThreadSafeData;
|
| -class WebURL;
|
| -}
|
|
|
| namespace content {
|
| -class ThreadSafeSender;
|
|
|
| -class WebBlobRegistryImpl : public blink::WebBlobRegistry {
|
| +class MockWebBlobRegistryImpl : public blink::WebBlobRegistry {
|
| public:
|
| - explicit WebBlobRegistryImpl(ThreadSafeSender* sender);
|
| - virtual ~WebBlobRegistryImpl();
|
| + MockWebBlobRegistryImpl();
|
| + virtual ~MockWebBlobRegistryImpl();
|
|
|
| virtual void registerBlobData(const blink::WebString& uuid,
|
| const blink::WebBlobData& data);
|
| @@ -44,12 +35,9 @@ class WebBlobRegistryImpl : public blink::WebBlobRegistry {
|
| virtual void unregisterStreamURL(const blink::WebURL& url);
|
|
|
| private:
|
| - void SendDataForBlob(const std::string& uuid_str,
|
| - const blink::WebThreadSafeData& data);
|
| -
|
| - scoped_refptr<ThreadSafeSender> sender_;
|
| + DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl);
|
| };
|
|
|
| } // namespace content
|
|
|
| -#endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
|
| +#endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
|
|
|