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

Side by Side Diff: chrome/browser/sync/notifier/cache_invalidation_packet_handler.h

Issue 3191024: Fixed CacheInvalidationPacketHandler crash. (Closed)
Patch Set: Fixed another use of NewCallback Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Class that handles the details of sending and receiving client 5 // Class that handles the details of sending and receiving client
6 // invalidation packets. 6 // invalidation packets.
7 7
8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_ 8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_
9 #define CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_ 9 #define CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/scoped_callback_factory.h"
15 #include "talk/xmpp/jid.h" 16 #include "talk/xmpp/jid.h"
16 17
17 namespace buzz { 18 namespace buzz {
18 class XmppClient; 19 class XmppClient;
19 } // namespace buzz 20 } // namespace buzz
20 21
21 namespace invalidation { 22 namespace invalidation {
22 class InvalidationClient; 23 class InvalidationClient;
23 class NetworkEndpoint; 24 class NetworkEndpoint;
24 } // namespace invalidation 25 } // namespace invalidation
(...skipping 16 matching lines...) Expand all
41 // route packets through the XMPP client passed into the constructor 42 // route packets through the XMPP client passed into the constructor
42 // anymore. 43 // anymore.
43 ~CacheInvalidationPacketHandler(); 44 ~CacheInvalidationPacketHandler();
44 45
45 private: 46 private:
46 void HandleOutboundPacket( 47 void HandleOutboundPacket(
47 invalidation::NetworkEndpoint* const& network_endpoint); 48 invalidation::NetworkEndpoint* const& network_endpoint);
48 49
49 void HandleInboundPacket(const std::string& packet); 50 void HandleInboundPacket(const std::string& packet);
50 51
52 base::ScopedCallbackFactory<CacheInvalidationPacketHandler>
53 scoped_callback_factory_;
54
51 buzz::XmppClient* xmpp_client_; 55 buzz::XmppClient* xmpp_client_;
52 invalidation::InvalidationClient* invalidation_client_; 56 invalidation::InvalidationClient* invalidation_client_;
53 57
54 // Parameters for sent messages. 58 // Parameters for sent messages.
55 59
56 // Monotonically increasing sequence number. 60 // Monotonically increasing sequence number.
57 int seq_; 61 int seq_;
58 // Unique session token. 62 // Unique session token.
59 const std::string sid_; 63 const std::string sid_;
60 64
61 DISALLOW_COPY_AND_ASSIGN(CacheInvalidationPacketHandler); 65 DISALLOW_COPY_AND_ASSIGN(CacheInvalidationPacketHandler);
62 }; 66 };
63 67
64 } // namespace sync_notifier 68 } // namespace sync_notifier
65 69
66 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_ 70 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CACHE_INVALIDATION_PACKET_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698