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

Side by Side Diff: chrome/browser/chromeos/web_socket_proxy_helper.h

Issue 21115004: extensions: Remove chrome.webSocketProxyPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_HELPER_H_
7
8 #include <string>
9 #include "base/basictypes.h"
10
11 namespace chromeos {
12
13 // Helper class for WebSocketProxy.
14 class WebSocketProxyHelper {
15 public:
16 // Parses "passport:addr:hostname:port:" string. Returns true on success.
17 static bool FetchPassportAddrNamePort(
18 uint8* begin, uint8* end,
19 std::string* passport, std::string* addr,
20 std::string* hostname, int* port);
21
22 // Fetches a token from the string and erases it. Token separtor is
23 // either ':' or ']:' if the token is started with '[' and
24 // |match_brackets|. Fetching position (start or end) is determined by
25 // |forward|. Returns whether the token was successfully fetched.
26 static bool FetchToken(bool forward, bool match_brackets,
27 std::string* input,
28 std::string* token);
29 };
30
31 } // namespace chromeos
32
33 #endif // CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/web_socket_proxy_controller.cc ('k') | chrome/browser/chromeos/web_socket_proxy_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698