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

Side by Side Diff: content/renderer/webclipboard_impl.h

Issue 1876653003: Register clipboard image blob in the browser process to copy data less. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « content/renderer/renderer_clipboard_delegate.cc ('k') | content/renderer/webclipboard_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_WEBCLIPBOARD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_WEBCLIPBOARD_IMPL_H_
6 #define CONTENT_RENDERER_WEBCLIPBOARD_IMPL_H_ 6 #define CONTENT_RENDERER_WEBCLIPBOARD_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 15 matching lines...) Expand all
26 uint64_t sequenceNumber(Buffer buffer) override; 26 uint64_t sequenceNumber(Buffer buffer) override;
27 bool isFormatAvailable(Format format, Buffer buffer) override; 27 bool isFormatAvailable(Format format, Buffer buffer) override;
28 blink::WebVector<blink::WebString> readAvailableTypes( 28 blink::WebVector<blink::WebString> readAvailableTypes(
29 Buffer buffer, 29 Buffer buffer,
30 bool* contains_filenames) override; 30 bool* contains_filenames) override;
31 blink::WebString readPlainText(Buffer buffer) override; 31 blink::WebString readPlainText(Buffer buffer) override;
32 blink::WebString readHTML(Buffer buffer, 32 blink::WebString readHTML(Buffer buffer,
33 blink::WebURL* source_url, 33 blink::WebURL* source_url,
34 unsigned* fragment_start, 34 unsigned* fragment_start,
35 unsigned* fragment_end) override; 35 unsigned* fragment_end) override;
36 blink::WebData readImage(Buffer buffer) override; 36 blink::WebBlobInfo readImage(Buffer buffer) override;
37 blink::WebString readCustomData(Buffer buffer, 37 blink::WebString readCustomData(Buffer buffer,
38 const blink::WebString& type) override; 38 const blink::WebString& type) override;
39 void writePlainText(const blink::WebString& plain_text) override; 39 void writePlainText(const blink::WebString& plain_text) override;
40 void writeHTML(const blink::WebString& html_text, 40 void writeHTML(const blink::WebString& html_text,
41 const blink::WebURL& source_url, 41 const blink::WebURL& source_url,
42 const blink::WebString& plain_text, 42 const blink::WebString& plain_text,
43 bool write_smart_paste) override; 43 bool write_smart_paste) override;
44 void writeImage(const blink::WebImage& image, 44 void writeImage(const blink::WebImage& image,
45 const blink::WebURL& source_url, 45 const blink::WebURL& source_url,
46 const blink::WebString& title) override; 46 const blink::WebString& title) override;
47 void writeDataObject(const blink::WebDragData& data) override; 47 void writeDataObject(const blink::WebDragData& data) override;
48 48
49 private: 49 private:
50 bool ConvertBufferType(Buffer, ui::ClipboardType*); 50 bool ConvertBufferType(Buffer, ui::ClipboardType*);
51 RendererClipboardDelegate* const delegate_; 51 RendererClipboardDelegate* const delegate_;
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_RENDERER_WEBCLIPBOARD_IMPL_H_ 56 #endif // CONTENT_RENDERER_WEBCLIPBOARD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_clipboard_delegate.cc ('k') | content/renderer/webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698