| 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 #if LOGGING | 5 #if LOGGING |
| 6 | 6 |
| 7 #include "chrome/browser/sync/notifier/communicator/xmpp_log.h" | 7 #include "chrome/common/net/notifier/communicator/xmpp_log.h" |
| 8 | 8 |
| 9 #include <iomanip> | 9 #include <iomanip> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "chrome/browser/sync/notifier/base/time.h" | 13 #include "chrome/common/net/notifier/base/time.h" |
| 14 #include "talk/base/common.h" | 14 #include "talk/base/common.h" |
| 15 #include "talk/base/logging.h" | 15 #include "talk/base/logging.h" |
| 16 | 16 |
| 17 namespace notifier { | 17 namespace notifier { |
| 18 | 18 |
| 19 static bool IsAuthTag(const char* str, size_t len) { | 19 static bool IsAuthTag(const char* str, size_t len) { |
| 20 // Beware that str is not NULL terminated. | 20 // Beware that str is not NULL terminated. |
| 21 if (str[0] == '<' && | 21 if (str[0] == '<' && |
| 22 str[1] == 'a' && | 22 str[1] == 'a' && |
| 23 str[2] == 'u' && | 23 str[2] == 'u' && |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 start = i; | 103 start = i; |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 buffer->erase(buffer->begin(), buffer->begin() + start); | 106 buffer->erase(buffer->begin(), buffer->begin() + start); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace notifier | 110 } // namespace notifier |
| 111 | 111 |
| 112 #endif // if LOGGING | 112 #endif // if LOGGING |
| OLD | NEW |