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

Side by Side Diff: content/child/webblobregistry_impl.h

Issue 15817013: Add Stream support to WebBlobRegistry and FileAPIMessageFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ 5 #ifndef CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
6 #define CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ 6 #define CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
10 #include "webkit/common/blob/blob_data.h" 10 #include "webkit/common/blob/blob_data.h"
11 11
12 namespace WebKit { 12 namespace WebKit {
13 class WebBlobData; 13 class WebBlobData;
14 class WebString;
14 class WebThreadSafeData; 15 class WebThreadSafeData;
15 class WebURL; 16 class WebURL;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 class ThreadSafeSender; 20 class ThreadSafeSender;
20 21
21 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { 22 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry {
22 public: 23 public:
23 explicit WebBlobRegistryImpl(ThreadSafeSender* sender); 24 explicit WebBlobRegistryImpl(ThreadSafeSender* sender);
24 virtual ~WebBlobRegistryImpl(); 25 virtual ~WebBlobRegistryImpl();
25 26
26 virtual void registerBlobURL(const WebKit::WebURL& url, 27 virtual void registerBlobURL(const WebKit::WebURL& url,
27 WebKit::WebBlobData& data); 28 WebKit::WebBlobData& data) OVERRIDE;
28 virtual void registerBlobURL(const WebKit::WebURL& url, 29 virtual void registerBlobURL(const WebKit::WebURL& url,
29 const WebKit::WebURL& src_url); 30 const WebKit::WebURL& src_url) OVERRIDE;
30 virtual void unregisterBlobURL(const WebKit::WebURL& url); 31 virtual void unregisterBlobURL(const WebKit::WebURL& url) OVERRIDE;
michaeln 2013/07/24 21:07:52 Please remove the OVERRIDE annotations for this We
tyoshino (SeeGerritForStatus) 2013/07/25 04:03:52 Done.
32
33 virtual void registerStreamURL(
34 const WebKit::WebURL& url,
35 const WebKit::WebString& content_type) OVERRIDE;
36 virtual void registerStreamURL(const WebKit::WebURL& url,
37 const WebKit::WebURL& src_url) OVERRIDE;
38 virtual void addDataToStream(const WebKit::WebURL& url,
39 WebKit::WebThreadSafeData& data) OVERRIDE;
40 virtual void finalizeStream(const WebKit::WebURL& url) OVERRIDE;
41 virtual void unregisterStreamURL(const WebKit::WebURL& url) OVERRIDE;
31 42
32 private: 43 private:
33 void SendData(const WebKit::WebURL& url, 44 void SendDataForBlob(const WebKit::WebURL& url,
34 const WebKit::WebThreadSafeData& data, 45 const WebKit::WebThreadSafeData& data);
35 webkit_blob::BlobData::Item* item);
36 46
37 scoped_refptr<ThreadSafeSender> sender_; 47 scoped_refptr<ThreadSafeSender> sender_;
38 }; 48 };
39 49
40 } // namespace content 50 } // namespace content
41 51
42 #endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ 52 #endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/child/webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698