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 "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/common/net/notifier/communicator/connection_settings.h" | 11 #include "jingle/notifier/communicator/connection_settings.h" |
12 #include "talk/base/helpers.h" | 12 #include "talk/base/helpers.h" |
13 #include "talk/xmpp/xmppclientsettings.h" | 13 #include "talk/xmpp/xmppclientsettings.h" |
14 | 14 |
15 namespace notifier { | 15 namespace notifier { |
16 | 16 |
17 class RandomGenerator { | 17 class RandomGenerator { |
18 public: | 18 public: |
19 int operator()(int ceiling) { | 19 int operator()(int ceiling) { |
20 return static_cast<int>(talk_base::CreateRandomId() % ceiling); | 20 return static_cast<int>(talk_base::CreateRandomId() % ceiling); |
21 } | 21 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 if (special_port_magic) { | 120 if (special_port_magic) { |
121 settings.set_protocol(cricket::PROTO_SSLTCP); | 121 settings.set_protocol(cricket::PROTO_SSLTCP); |
122 settings.mutable_server()->SetPort(443); | 122 settings.mutable_server()->SetPort(443); |
123 list_temp->push_back(settings); | 123 list_temp->push_back(settings); |
124 } | 124 } |
125 } | 125 } |
126 } | 126 } |
127 } | 127 } |
128 } // namespace notifier | 128 } // namespace notifier |
OLD | NEW |