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

Side by Side Diff: net/base/net_util.h

Issue 260003: Move the clipboard stuff out of base and into app/clipboard. I renamed... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/test/testing_browser_process.h ('k') | net/base/net_util.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 NET_BASE_NET_UTIL_H__ 5 #ifndef NET_BASE_NET_UTIL_H__
6 #define NET_BASE_NET_UTIL_H__ 6 #define NET_BASE_NET_UTIL_H__
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #ifdef OS_WIN 10 #ifdef OS_WIN
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 #include <string> 14 #include <string>
15 #include <set> 15 #include <set>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "net/base/escape.h" 19 #include "net/base/escape.h"
20 20
21 struct addrinfo; 21 struct addrinfo;
22 class Clipboard;
23 class FilePath; 22 class FilePath;
24 class GURL; 23 class GURL;
25 24
26 namespace base { 25 namespace base {
27 class Time; 26 class Time;
28 } 27 }
29 28
30 namespace url_canon { 29 namespace url_canon {
31 struct CanonHostInfo; 30 struct CanonHostInfo;
32 } 31 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 url_parse::Parsed* new_parsed, 232 url_parse::Parsed* new_parsed,
234 size_t* prefix_end); 233 size_t* prefix_end);
235 234
236 // Creates a string representation of |url| for display to the user. 235 // Creates a string representation of |url| for display to the user.
237 // This is a shorthand of the above function with omit_username_password=true, 236 // This is a shorthand of the above function with omit_username_password=true,
238 // unescape=SPACES, new_parsed=NULL, and prefix_end=NULL. 237 // unescape=SPACES, new_parsed=NULL, and prefix_end=NULL.
239 inline std::wstring FormatUrl(const GURL& url, const std::wstring& languages) { 238 inline std::wstring FormatUrl(const GURL& url, const std::wstring& languages) {
240 return FormatUrl(url, languages, true, UnescapeRule::SPACES, NULL, NULL); 239 return FormatUrl(url, languages, true, UnescapeRule::SPACES, NULL, NULL);
241 } 240 }
242 241
243 // Writes a string representation of |url| to the system clipboard.
244 void WriteURLToClipboard(const GURL& url,
245 const std::wstring& languages,
246 Clipboard *clipboard);
247
248 // Strip the portions of |url| that aren't core to the network request. 242 // Strip the portions of |url| that aren't core to the network request.
249 // - user name / password 243 // - user name / password
250 // - reference section 244 // - reference section
251 GURL SimplifyUrlForRequest(const GURL& url); 245 GURL SimplifyUrlForRequest(const GURL& url);
252 246
253 void SetExplicitlyAllowedPorts(const std::wstring& allowed_ports); 247 void SetExplicitlyAllowedPorts(const std::wstring& allowed_ports);
254 248
255 } // namespace net 249 } // namespace net
256 250
257 #endif // NET_BASE_NET_UTIL_H__ 251 #endif // NET_BASE_NET_UTIL_H__
OLDNEW
« no previous file with comments | « chrome/test/testing_browser_process.h ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698