OLD | NEW |
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 Loading... |
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 |
OLD | NEW |