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

Side by Side Diff: content/test/mock_webblob_registry_impl.h

Issue 760823002: Introduce Stream::flush [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H 5 #ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
6 #define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H 6 #define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
10 10
(...skipping 12 matching lines...) Expand all
23 const blink::WebString& uuid); 23 const blink::WebString& uuid);
24 virtual void revokePublicBlobURL(const blink::WebURL&); 24 virtual void revokePublicBlobURL(const blink::WebURL&);
25 25
26 // Additional support for Streams. 26 // Additional support for Streams.
27 virtual void registerStreamURL(const blink::WebURL& url, 27 virtual void registerStreamURL(const blink::WebURL& url,
28 const blink::WebString& content_type); 28 const blink::WebString& content_type);
29 virtual void registerStreamURL(const blink::WebURL& url, 29 virtual void registerStreamURL(const blink::WebURL& url,
30 const blink::WebURL& src_url); 30 const blink::WebURL& src_url);
31 virtual void addDataToStream(const blink::WebURL& url, 31 virtual void addDataToStream(const blink::WebURL& url,
32 const char* data, size_t length); 32 const char* data, size_t length);
33 virtual void flushStream(const blink::WebURL& url);
33 virtual void finalizeStream(const blink::WebURL& url); 34 virtual void finalizeStream(const blink::WebURL& url);
34 virtual void abortStream(const blink::WebURL& url); 35 virtual void abortStream(const blink::WebURL& url);
35 virtual void unregisterStreamURL(const blink::WebURL& url); 36 virtual void unregisterStreamURL(const blink::WebURL& url);
36 37
37 private: 38 private:
38 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); 39 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl);
39 }; 40 };
40 41
41 } // namespace content 42 } // namespace content
42 43
43 #endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H 44 #endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698