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

Side by Side Diff: app/clipboard/scoped_clipboard_writer.h

Issue 3173020: FBTF: Remove unneeded #includes of <string> and <vector> from src/app and src/base. (Closed)
Patch Set: argh Created 10 years, 4 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 | « no previous file | app/gtk_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file declares the ScopedClipboardWriter class, a wrapper around 5 // This file declares the ScopedClipboardWriter class, a wrapper around
6 // the Clipboard class which simplifies writing data to the system clipboard. 6 // the Clipboard class which simplifies writing data to the system clipboard.
7 // Upon deletion the class atomically writes all data to |clipboard_|, 7 // Upon deletion the class atomically writes all data to |clipboard_|,
8 // avoiding any potential race condition with other processes that are also 8 // avoiding any potential race condition with other processes that are also
9 // writing to the system clipboard. 9 // writing to the system clipboard.
10 10
11 #ifndef APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 11 #ifndef APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
12 #define APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 12 #define APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
13 #pragma once 13 #pragma once
14 14
15 #include <string> 15 #include <string>
16 #include <vector>
17 16
18 #include "app/clipboard/clipboard.h" 17 #include "app/clipboard/clipboard.h"
19 #include "base/file_path.h" 18 #include "base/file_path.h"
20 #include "base/string16.h" 19 #include "base/string16.h"
21 20
22 class Pickle; 21 class Pickle;
23 22
24 // This class is a wrapper for |Clipboard| that handles packing data 23 // This class is a wrapper for |Clipboard| that handles packing data
25 // into a Clipboard::ObjectMap. 24 // into a Clipboard::ObjectMap.
26 // NB: You should probably NOT be using this class if you include 25 // NB: You should probably NOT be using this class if you include
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 72
74 // We keep around the UTF-8 text of the URL in order to pass it to 73 // We keep around the UTF-8 text of the URL in order to pass it to
75 // Clipboard::DidWriteURL(). 74 // Clipboard::DidWriteURL().
76 std::string url_text_; 75 std::string url_text_;
77 76
78 private: 77 private:
79 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriter); 78 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriter);
80 }; 79 };
81 80
82 #endif // APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 81 #endif // APP_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
OLDNEW
« no previous file with comments | « no previous file | app/gtk_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698