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

Side by Side Diff: webkit/glue/webclipboard_impl.h

Issue 159238: Fix a leak that only happens in layout test mode. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « webkit/api/public/WebClipboard.h ('k') | webkit/tools/test_shell/mock_webclipboard_impl.h » ('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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef WEBCLIPBOARD_IMPL_H_ 5 #ifndef WEBCLIPBOARD_IMPL_H_
6 #define WEBCLIPBOARD_IMPL_H_ 6 #define WEBCLIPBOARD_IMPL_H_
7 7
8 #include "webkit/api/public/WebClipboard.h" 8 #include "webkit/api/public/WebClipboard.h"
9 9
10 #include <string> 10 #include <string>
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13 13
14 class WebClipboardImpl : public WebKit::WebClipboard { 14 class WebClipboardImpl : public WebKit::WebClipboard {
15 public: 15 public:
16 static std::string URLToMarkup(const WebKit::WebURL& url, 16 static std::string URLToMarkup(const WebKit::WebURL& url,
17 const WebKit::WebString& title); 17 const WebKit::WebString& title);
18 static std::string URLToImageMarkup(const WebKit::WebURL& url, 18 static std::string URLToImageMarkup(const WebKit::WebURL& url,
19 const WebKit::WebString& title); 19 const WebKit::WebString& title);
20 20
21 virtual ~WebClipboardImpl() {}
22
21 // WebClipboard methods: 23 // WebClipboard methods:
22 virtual bool isFormatAvailable(WebKit::WebClipboard::Format); 24 virtual bool isFormatAvailable(WebKit::WebClipboard::Format);
23 virtual WebKit::WebString readPlainText(); 25 virtual WebKit::WebString readPlainText();
24 virtual WebKit::WebString readHTML(WebKit::WebURL* source_url); 26 virtual WebKit::WebString readHTML(WebKit::WebURL* source_url);
25 virtual void writeHTML( 27 virtual void writeHTML(
26 const WebKit::WebString& html_text, 28 const WebKit::WebString& html_text,
27 const WebKit::WebURL& source_url, 29 const WebKit::WebURL& source_url,
28 const WebKit::WebString& plain_text, 30 const WebKit::WebString& plain_text,
29 bool write_smart_paste); 31 bool write_smart_paste);
30 virtual void writeURL( 32 virtual void writeURL(
31 const WebKit::WebURL&, 33 const WebKit::WebURL&,
32 const WebKit::WebString& title); 34 const WebKit::WebString& title);
33 virtual void writeImage( 35 virtual void writeImage(
34 const WebKit::WebImage&, 36 const WebKit::WebImage&,
35 const WebKit::WebURL& source_url, 37 const WebKit::WebURL& source_url,
36 const WebKit::WebString& title); 38 const WebKit::WebString& title);
37 }; 39 };
38 40
39 } // namespace webkit_glue 41 } // namespace webkit_glue
40 42
41 #endif // WEBCLIPBOARD_IMPL_H_ 43 #endif // WEBCLIPBOARD_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/api/public/WebClipboard.h ('k') | webkit/tools/test_shell/mock_webclipboard_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698