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

Side by Side Diff: jingle/notifier/communicator/connection_settings.cc

Issue 2885005: Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: rebased Created 10 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
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 "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
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
OLDNEW
« no previous file with comments | « jingle/notifier/communicator/connection_settings.h ('k') | jingle/notifier/communicator/const_communicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698