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

Unified Diff: chrome/browser/sync/notifier/communicator/login_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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/notifier/communicator/login_settings.cc
===================================================================
--- chrome/browser/sync/notifier/communicator/login_settings.cc (revision 46353)
+++ chrome/browser/sync/notifier/communicator/login_settings.cc (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string>
-
-#include "chrome/browser/sync/notifier/communicator/login_settings.h"
-
-#include "chrome/browser/sync/notifier/communicator/connection_options.h"
-#include "chrome/browser/sync/notifier/communicator/xmpp_connection_generator.h"
-#include "talk/base/common.h"
-#include "talk/base/socketaddress.h"
-#include "talk/xmpp/xmppclientsettings.h"
-
-namespace notifier {
-
-LoginSettings::LoginSettings(const buzz::XmppClientSettings& user_settings,
- const ConnectionOptions& options,
- std::string lang,
- ServerInformation* server_list,
- int server_count,
- talk_base::FirewallManager* firewall,
- bool proxy_only)
- : proxy_only_(proxy_only),
- firewall_(firewall),
- lang_(lang),
- server_list_(new ServerInformation[server_count]),
- server_count_(server_count),
- user_settings_(new buzz::XmppClientSettings(user_settings)),
- connection_options_(new ConnectionOptions(options)) {
- // Note: firewall may be NULL.
- ASSERT(server_list != 0);
- ASSERT(server_count > 0);
- for (int i = 0; i < server_count_; ++i) {
- server_list_[i] = server_list[i];
- }
-}
-
-// Defined so that the destructors are executed here (and the corresponding
-// classes don't need to be included in the header file).
-LoginSettings::~LoginSettings() {
-}
-
-void LoginSettings::set_server_override(
- const talk_base::SocketAddress& server) {
- server_override_.reset(new ServerInformation());
- server_override_->server = server;
- server_override_->special_port_magic = server_list_[0].special_port_magic;
-}
-
-void LoginSettings::clear_server_override() {
- server_override_.reset();
-}
-
-} // namespace notifier
« no previous file with comments | « chrome/browser/sync/notifier/communicator/login_settings.h ('k') | chrome/browser/sync/notifier/communicator/mailbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698