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

Side by Side Diff: chrome/common/net/notifier/communicator/xmpp_log.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, 7 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 | Annotate | Revision Log
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 #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
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
OLDNEW
« no previous file with comments | « chrome/common/net/notifier/communicator/xmpp_log.h ('k') | chrome/common/net/notifier/communicator/xmpp_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698