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

Side by Side Diff: chrome/browser/chromeos/web_socket_proxy.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/chromeos/web_socket_proxy.h" 5 #include "chrome/browser/chromeos/web_socket_proxy.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return std::string(); 146 return std::string();
147 } 147 }
148 148
149 inline size_t strlen(const uint8* s) { 149 inline size_t strlen(const uint8* s) {
150 return ::strlen(reinterpret_cast<const char*>(s)); 150 return ::strlen(reinterpret_cast<const char*>(s));
151 } 151 }
152 152
153 void SendNotification() { 153 void SendNotification() {
154 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 154 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
155 NotificationService::current()->Notify( 155 NotificationService::current()->Notify(
156 NotificationType::WEB_SOCKET_PROXY_STARTED, 156 chrome::WEB_SOCKET_PROXY_STARTED,
157 NotificationService::AllSources(), NotificationService::NoDetails()); 157 NotificationService::AllSources(), NotificationService::NoDetails());
158 } 158 }
159 159
160 class Conn; 160 class Conn;
161 161
162 // Websocket to TCP proxy server. 162 // Websocket to TCP proxy server.
163 class Serv { 163 class Serv {
164 public: 164 public:
165 Serv(const std::vector<std::string>& allowed_origins, 165 Serv(const std::vector<std::string>& allowed_origins,
166 struct sockaddr* addr, int addr_len); 166 struct sockaddr* addr, int addr_len);
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 void WebSocketProxy::Run() { 1288 void WebSocketProxy::Run() {
1289 static_cast<Serv*>(impl_)->Run(); 1289 static_cast<Serv*>(impl_)->Run();
1290 } 1290 }
1291 1291
1292 void WebSocketProxy::Shutdown() { 1292 void WebSocketProxy::Shutdown() {
1293 static_cast<Serv*>(impl_)->Shutdown(); 1293 static_cast<Serv*>(impl_)->Shutdown();
1294 } 1294 }
1295 1295
1296 } // namespace chromeos 1296 } // namespace chromeos
1297 1297
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698