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

Side by Side Diff: chrome/common/net/notifier/communicator/connection_settings.cc

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <algorithm> 5 #include <algorithm>
6 #include <deque> 6 #include <deque>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/sync/notifier/communicator/connection_settings.h" 10 #include "chrome/common/net/notifier/communicator/connection_settings.h"
11 #include "talk/base/helpers.h" 11 #include "talk/base/helpers.h"
12 #include "talk/xmpp/xmppclientsettings.h" 12 #include "talk/xmpp/xmppclientsettings.h"
13 13
14 namespace notifier { 14 namespace notifier {
15 15
16 class RandomGenerator { 16 class RandomGenerator {
17 public: 17 public:
18 int operator()(int ceiling) { 18 int operator()(int ceiling) {
19 return static_cast<int>(cricket::CreateRandomId() % ceiling); 19 return static_cast<int>(cricket::CreateRandomId() % ceiling);
20 } 20 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 if (special_port_magic) { 119 if (special_port_magic) {
120 settings.set_protocol(cricket::PROTO_SSLTCP); 120 settings.set_protocol(cricket::PROTO_SSLTCP);
121 settings.mutable_server()->SetPort(443); 121 settings.mutable_server()->SetPort(443);
122 list_temp->push_back(settings); 122 list_temp->push_back(settings);
123 } 123 }
124 } 124 }
125 } 125 }
126 } 126 }
127 } // namespace notifier 127 } // namespace notifier
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698